File check_mk-pnp-templates-check_mk-if.php.patch of Package check_mk
--- check_mk-if.php.orig 2019-12-23 15:05:13.439565790 +0100
+++ check_mk-if.php 2019-12-23 15:04:57.583566796 +0100
@@ -54,9 +54,13 @@
}
# Convert bytes to bits if neccessary
-$bandwidth = $MAX[1] * $unit_multiplier;
-$warn = $WARN[1] * $unit_multiplier;
-$crit = $CRIT[1] * $unit_multiplier;
+#$bandwidth = $MAX[1] * $unit_multiplier;
+#$warn = $WARN[1] * $unit_multiplier;
+#$crit = $CRIT[1] * $unit_multiplier;
+# https://lists.mathias-kettner.de/pipermail/checkmk-en/2018-May/025300.html
+$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