Last active
November 19, 2017 02:32
-
-
Save 4oo4/b6830af5496d8df35aedf1cc950c86b5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- check_mk-if.php.orig 2017-11-18 15:44:44.518227855 -0600 | |
+++ check_mk-if.php 2017-11-18 17:14:32.980595205 -0600 | |
@@ -54,9 +54,9 @@ | |
} | |
# Convert bytes to bits if neccessary | |
-$bandwidth = $MAX[1] * $unit_multiplier; | |
-$warn = $WARN[1] * $unit_multiplier; | |
-$crit = $CRIT[1] * $unit_multiplier; | |
+$bandwidth = ((float)$MAX[1]) * $unit_multiplier; | |
+$warn = ((float)$WARN[1]) * $unit_multiplier; | |
+$crit = ((float)$CRIT[1]) * $unit_multiplier; | |
# Now choose a convenient scale, based on the known bandwith of | |
# the interface, and break down bandwidth, warn and crit by that |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment