Module: check_mk
Branch: master
Commit: 1c992016a632e40045140dc82820501f51d0d766
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1c992016a632e4…
Author: Goetz Golla <gg(a)mathias-kettner.de>
Date: Wed Jul 2 18:29:04 2014 +0200
FIX: units of check are now consistent in Bytes and not Bits
---
checks/fc_port | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/checks/fc_port b/checks/fc_port
index 3bb0963..11129c0 100644
--- a/checks/fc_port
+++ b/checks/fc_port
@@ -144,13 +144,13 @@ def check_fc_port(item, params, info):
wirespeed = savefloat(portinfo[0][4]) * 1000.0 # speed in Bytes/sec, 0 if unknown
if wirespeed == 0:
- # let user specify assumed speed via check parameter, default is 16.0 GBit/sec
- gbit = params.get("assumed_speed", 16.0)
- wirespeed = gbit * 1000.0 * 1000.0 * 1000.0 / 8.0 # in Bytes/sec
- speedmsg = "assuming %g GBit/s" % gbit
+ # let user specify assumed speed via check parameter, default is 2.0 GByte/sec
+ gb = params.get("assumed_speed", 2.0)
+ wirespeed = gb * 1000.0 * 1000.0 * 1000.0 # in Bytes/sec
+ speedmsg = "assuming %g GB/s" % gb
else:
- gbit = wirespeed * 8.0 / ( 1000.0 * 1000.0 * 1000.0 ) # in GBit/sec
- speedmsg = "%.1f GBit/s" % gbit
+ gb = wirespeed / ( 1000.0 * 1000.0 * 1000.0 ) # in GByte/sec
+ speedmsg = "%.1f GB/s" % gb
output.append(speedmsg)
# Now check rates of various counters