From d223b4e86112e4b0ab566bc0d3b2916f9e66f9f2 Mon Sep 17 00:00:00 2001 From: Jan Michel Date: Mon, 22 May 2017 11:04:29 +0200 Subject: [PATCH] Enable caching for power supply GUI --- powersupplies/web/htdocs/pwr.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.43.0