diff options
-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" ); |