cookutils rev 1070
lighttpd/index.cgi: tiny edits (again)
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Jun 06 13:39:19 2018 +0300 (2018-06-06) |
parents | a40d41d389d3 |
children | 7e99c6e7eb42 |
files | lighttpd/index.cgi |
line diff
1.1 --- a/lighttpd/index.cgi Wed Jun 06 13:36:05 2018 +0300 1.2 +++ b/lighttpd/index.cgi Wed Jun 06 13:39:19 2018 +0300 1.3 @@ -916,7 +916,7 @@ 1.4 ;; 1.5 webstat) 1.6 # Do we need to update the statistics? 1.7 - [ -z "$2" -a "$webstat" -nt "$activity" ] || update_webstat 1.8 + if [ -z "$2" -a "$activity" -nt "$webstat" ]; then update_webstat; fi 1.9 . $webstat 1.10 1.11 pct=0; [ "$rtotal" -gt 0 ] && pct=$(( ($rcooked * 100) / $rtotal ))