diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2005-04-15 17:03:01 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2005-04-15 17:03:01 +0200 |
commit | 1f333688daf8f6dcf6f5a9c0be857dbcf0675dc3 (patch) | |
tree | f2b8bb8cae4acaef8db621b2004cfa46573ffca7 /lib | |
parent | 21df925982b162f18479c9ab8312e3573dcd7f24 (diff) | |
download | smokeping-1f333688daf8f6dcf6f5a9c0be857dbcf0675dc3.tar.gz smokeping-1f333688daf8f6dcf6f5a9c0be857dbcf0675dc3.tar.xz |
make unlink in navcache work
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index 963299d..518f5a1 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -559,9 +559,11 @@ sub get_overview ($$$$){ '--start','-'.exp2seconds($cfg->{Presentation}{overview}{range}), '--title',$tree->{$prop}{title}, '--height',$cfg->{Presentation}{overview}{height}, - '--width',,$cfg->{Presentation}{overview}{width}, + '--width',$cfg->{Presentation}{overview}{width}, '--vertical-label',"Seconds", '--imgformat','PNG', + '--alt-autoscale-max', + '--alt-y-grid', '--lower-limit','0', "DEF:median=${rrd}:median:AVERAGE", "DEF:loss=${rrd}:loss:AVERAGE", @@ -726,11 +728,10 @@ sub get_detail ($$$$){ close HG; } } else { - my $basedir = - mkdir $cfg->{General}{imgcache}."/__navcache",0755 unless -d $imgbase; + mkdir $cfg->{General}{imgcache}."/__navcache",0755 unless -d $cfg->{General}{imgcache}."/__navcache"; # remove old images after one hour my $pattern = "$cfg->{General}{imgcache}/__navcache/*.png"; - for (<$pattern>){ + for (<"$pattern">){ unlink $_ if -A $_ > 1/24; } $imgbase =$cfg->{General}{imgcache}."/__navcache/".time()."$$"; |