unique filename for cached images

This commit is contained in:
Martin Kompf 2016-05-06 20:24:31 +02:00
parent b41b81c9f4
commit f5a694ee19
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ if ($size eq 'big') {
die "invalid type\n" unless $type =~ /(count|consum)(day|week|month|year)/;
$ds=$1;
$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
my $maxdiff = 10;