diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2007-12-20 21:28:08 +0100 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2007-12-20 21:28:08 +0100 |
commit | 7091adae1bc9aac0e8b363d320e3efdcfd84e71f (patch) | |
tree | 43a856051aa1f78ffb55e9b0e7bf26d9496b6a40 | |
parent | 68ea224e043c83de1d185cb6fa329997a34ec74d (diff) | |
download | smokeping-7091adae1bc9aac0e8b363d320e3efdcfd84e71f.tar.gz smokeping-7091adae1bc9aac0e8b363d320e3efdcfd84e71f.tar.xz |
portability fix for %.1f
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | lib/Smokeping.pm | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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" ); |