ifpps: correct calculation of line rate percentage
commitdefd121efe1c394fe002ce9b0f36a2422a054af7
authorTobias Klauser <tklauser@distanz.ch>
Mon, 9 Sep 2013 10:40:14 +0000 (9 12:40 +0200)
committerTobias Klauser <tklauser@distanz.ch>
Mon, 9 Sep 2013 10:40:14 +0000 (9 12:40 +0200)
treec448f569c3dcf303f5943bfe6a973ff6da615b5e
parent382b08547cc61faf10d94cffef890ce0dc85609c
ifpps: correct calculation of line rate percentage

The line rate is given in Mbit rather than MiB (in which {rx,tx}_bytes
were converted). Correct the calculation by converting {rx,tx}_bytes to
Mbit:

  (n bytes * 8 bits per byte) / 1000^2 = (n bytes) / 125000

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
ifpps.c