SVGcache bugfix

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@3261 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2013-06-08 12:04:17 +00:00
parent 2f56397c83
commit 6c603f74cf

View File

@@ -1522,7 +1522,8 @@ FW_showLog($)
$FW_RETTYPE = "image/svg+xml";
my $SVGcache = (AttrVal($FW_wname, "SVGcache", undef) && $t lt TimeNow());
(my $cachedate = TimeNow()) =~ s/ /_/g;
my $SVGcache = (AttrVal($FW_wname, "SVGcache", undef) && $t lt $cachedate);
my $cDir = "$FW_dir/SVGcache";
my $cName = "$cDir/$wl-$f-$t.svg";
if($SVGcache && open(CFH, $cName)) {