Module: check_mk
Branch: master
Commit: 3281c06ad4c972372fb3db1f2c948ecdea3e6ed3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3281c06ad4c972…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Tue Jun 6 10:46:12 2017 +0200
Fixed speed calculation for tplink switches
Change-Id: Iabaf74602f481eeb77bafef2075415abf891ae19
---
checks/if.include | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/if.include b/checks/if.include
index 0a869ef..f1efe10 100644
--- a/checks/if.include
+++ b/checks/if.include
@@ -341,7 +341,7 @@ def inventory_if_common(info, has_nodeinfo = False):
# Fix bug in TP Link switches
ifSpeed = saveint(ifSpeed)
- if ifSpeed > 9000000 * 100 * 1000:
+ if ifSpeed > 9 * 1000 * 1000 * 1000 * 1000:
ifSpeed /= 1000000
# compute item now - also for unmonitored ports - in order to see if it is
unique.