devices: Fix processing /proc/net/dev file
The do_proc_net_dev() reads the /proc/net/dev file and counts tx/rx
packets for each interface. However index for rx packet (1) is not
match to the file:
$ cat /proc/net/dev
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
(1) (2) (3) (4) (5) (6) (7) (8) (9) (10) (11) (12) (13) (14) (15) (16)
Change the index to 2 to match to the number of receive packets.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
1 file changed