From: Jan Michel Date: Mon, 22 May 2017 09:04:29 +0000 (+0200) Subject: Enable caching for power supply GUI X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=d223b4e86112e4b0ab566bc0d3b2916f9e66f9f2;p=labtools.git Enable caching for power supply GUI --- diff --git a/powersupplies/web/htdocs/pwr.pl b/powersupplies/web/htdocs/pwr.pl index 00eb3d6..aa6c0bc 100755 --- a/powersupplies/web/htdocs/pwr.pl +++ b/powersupplies/web/htdocs/pwr.pl @@ -218,7 +218,7 @@ sub serial_rw { sub getValue { my ($fh,$cmd,$cnt,$forceread) = @_; - if (0 && defined $db->{$cmd.$cnt}{tim} && $db->{$cmd.$cnt}{tim} > time()-2) { + if (defined $db->{$cmd.$cnt}{tim} && $db->{$cmd.$cnt}{tim} > time()-2) { return $db->{$cmd.$cnt}{val}; } else {