diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-09-09 12:40:14 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-09-09 12:40:14 +0200 |
commit | defd121efe1c394fe002ce9b0f36a2422a054af7 (patch) | |
tree | c448f569c3dcf303f5943bfe6a973ff6da615b5e /sock.c | |
parent | 382b08547cc61faf10d94cffef890ce0dc85609c (diff) |
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>
Diffstat (limited to 'sock.c')
0 files changed, 0 insertions, 0 deletions