[pve-devel] [PATCH] implement node netstat call to get current tap network counters

Stefan Priebe s.priebe at profihost.ag
Thu Apr 18 08:44:16 CEST 2013


Am 18.04.2013 08:41, schrieb Dietmar Maurer:
>> +	        $res->{$vmid}{'net'.$netid}{out} = $netdev->{$dev}->{receive};
>> +	        $res->{$vmid}{'net'.$netid}{in} = $netdev->{$dev}->{transmit};
>
> I also prefer "net$netid" instead of 'net'.$netid

Is this a bug?

The code in vmstatus seems to be wrong for netout and netin

         $d->{netout} += $netdev->{$dev}->{receive};
         $d->{netin} += $netdev->{$dev}->{transmit};


netin is receive and netout is transmit... isn't it?

Greets,
Stefan


More information about the pve-devel mailing list