Module: check_mk
Branch: master
Commit: 28b89e726696847ebd6aeb0ce54a6609878099fd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=28b89e72669684…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Jul 11 10:30:02 2014 +0200
if: Fix header of PNP template
---
pnp-templates/check_mk-if.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pnp-templates/check_mk-if.php b/pnp-templates/check_mk-if.php
index bbf4043..3f5280d 100644
--- a/pnp-templates/check_mk-if.php
+++ b/pnp-templates/check_mk-if.php
@@ -90,7 +90,7 @@ $range = min(10, $bandwidth);
$bandwidthInfo = "";
if ($bandwidth > 0){
- $bandwidthInfo = " at $bandwidth ${bwuom}${unit}/s $range";
+ $bandwidthInfo = " at " . sprintf("%.1f", $bandwidth) .
"${bwuom}${unit}/s $range";
}
$ds_name[1] = 'Used bandwidth';
$opt[1] = "--vertical-label \"$vertical_label_name\" -l -$range -u $range
-X0 -b 1024 --title \"Used bandwidth $hostname / $servicedesc $bandwidthInfo\"
";