Some distributions (at least Debian 9 and 10) report "-1" in /sys/class/net/*/speed if running virtualized. This leads to miscalculations and virtual interfaces are not recognized correctly. This should fix this. If speed is 0 or less, percentages won't get calculated because there is no maximum bandwidth.
Some distributions (at least Debian 9 and 10) report "-1" in /sys/class/net/*/speed if running virtualized. This leads to miscalculations and virtual interfaces are not recognized correctly. This should fix this. If speed is 0 or less, percentages won't get calculated because there is no maximum bandwidth.
Typo fixed on line 122/125