1
0
mirror of https://github.com/skaringa/water-counter.git synced 2024-11-21 17:04:25 +01:00

unique filename for cached images

This commit is contained in:
Martin Kompf 2016-05-06 20:24:31 +02:00
parent b41b81c9f4
commit f5a694ee19

View File

@ -31,7 +31,7 @@ if ($size eq 'big') {
die "invalid type\n" unless $type =~ /(count|consum)(day|week|month|year)/; die "invalid type\n" unless $type =~ /(count|consum)(day|week|month|year)/;
$ds=$1; $ds=$1;
$range=$2; $range=$2;
$filename="/tmp/em${type}_${size}.png"; $filename="/tmp/wai${type}_${size}.png";
# create new image if existing file is older than rrd file # create new image if existing file is older than rrd file
my $maxdiff = 10; my $maxdiff = 10;