summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-12-20 21:28:08 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-12-20 21:28:08 +0100
commit7091adae1bc9aac0e8b363d320e3efdcfd84e71f (patch)
tree43a856051aa1f78ffb55e9b0e7bf26d9496b6a40
parent68ea224e043c83de1d185cb6fa329997a34ec74d (diff)
downloadsmokeping-7091adae1bc9aac0e8b363d320e3efdcfd84e71f.tar.gz
smokeping-7091adae1bc9aac0e8b363d320e3efdcfd84e71f.tar.xz
portability fix for %.1f
-rw-r--r--CHANGES2
-rw-r--r--lib/Smokeping.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGES b/CHANGES
index 0feb6f5..39123b1 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+* made Smokeping.pm more portable by using %.1f in perl sprintf -- tobi
+
* fix file locking for solaris in master/slave setups. work in progress. -- tobi
* EchoPingHttp: add the 'accept_redirects' option, suggested by
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index e497518..46ba134 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -1091,7 +1091,7 @@ sub get_detail ($$$$;$){
'GPRINT:median:MAX:%.1lf %ss max',
'GPRINT:median:MIN:%.1lf %ss min',
'GPRINT:median:LAST:%.1lf %ss now',
- sprintf('COMMENT:%.1lf ms sd',$stddev*1000.0),
+ sprintf('COMMENT:%.1f ms sd',$stddev*1000.0),
'GPRINT:mesd:AVERAGE:%.1lf %s am/s\l',
"LINE1:median#202020"
);