Blame SOURCES/mrtg-2.17.4-cfgmaker-ifhighspeed.patch
|
|
fb4e96 |
diff -up mrtg-2.17.4/bin/cfgmaker.orig mrtg-2.17.4/bin/cfgmaker
|
|
|
fb4e96 |
--- mrtg-2.17.4/bin/cfgmaker.orig 2012-06-28 13:26:04.457533598 +0200
|
|
|
fb4e96 |
+++ mrtg-2.17.4/bin/cfgmaker 2012-06-28 13:27:50.514045178 +0200
|
|
|
fb4e96 |
@@ -224,7 +224,7 @@ sub InterfaceInfo($$$$$) {
|
|
|
fb4e96 |
# maximum value (4,294,967,295) and ifHighSpeed must be used
|
|
|
fb4e96 |
# to report the interace's speed. For a sub-layer which has
|
|
|
fb4e96 |
# no concept of bandwidth, this object should be zero."
|
|
|
fb4e96 |
- if ( (not defined $value) || ($value == 2**32-1) ) {
|
|
|
fb4e96 |
+ if ( (not defined $value) || ($value == 2**32-1) || ($value == 2**32-2)) {
|
|
|
fb4e96 |
($if, $value) = split /:/, $ifHighSpeed[$i], 2;
|
|
|
fb4e96 |
$value = $value * 1000000; # highSpeed = contador * 10^6
|
|
|
fb4e96 |
debug('base',"Speed: $if - $value");
|