mrtg/mrtg-2.17.4-cfgmaker-ifhighspeed.patch
2023-05-11 15:09:15 +08:00

17 lines
724 B
Diff

diff --git a/bin/cfgmaker b/bin/cfgmaker
index 2fd8379..d8e9272 100755
--- a/bin/cfgmaker
+++ b/bin/cfgmaker
@@ -224,7 +224,7 @@ sub InterfaceInfo($$$$$) {
# maximum value (4,294,967,295) and ifHighSpeed must be used
# to report the interface's speed. For a sub-layer which has
# no concept of bandwidth, this object should be zero."
- if ( (not defined $value) || ($value == 2**32-1) ) {
+ if ( (not defined $value) || ($value == 2**32-1) || ($value == 2**32-2)) {
($if, $value) = split /:/, $ifHighSpeed[$i], 2;
$value = $value * 1000000; # highSpeed = contador * 10^6
debug('base',"Speed: $if - $value");
--
2.33.0