In certain configurations when running virtualized (kvm), some distributions (at least Debian 9 and 10) report -1 in /sys/class/net/*/speed if running virtualized (kvm). This leads to miscalculations e.g. ifSpeed: -1048576 # -1*1024*1024. This patch will ignore ifSpeeds less than 0. Percentages won't get calculated because there is no maximum bandwidth set (--ifspeed).
In certain configurations when running virtualized (kvm), some distributions (at least Debian 9 and 10) report
-1
in/sys/class/net/*/speed
if running virtualized (kvm). This leads to miscalculations e.g.ifSpeed: -1048576 # -1*1024*1024
. This patch will ignore ifSpeeds less than 0. Percentages won't get calculated because there is no maximum bandwidth set (--ifspeed
).