LaundrySorcery

git clone git://xatko.vsos.ethz.ch/LaundrySorcery.git
Log | Files | Refs

commit 77ab3e51fa0ffd018d4d0ade05424029af2cc6e5
parent f602fa3fe14700ee43e0ef437a83ec5bbfba8e80
Author: Dominik Schmidt <das1993@hotmail.com>
Date:   Wed,  6 Jun 2018 16:43:06 +0000

Fix the index.sh to make it work

Diffstat:
Mwww/index.sh | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/www/index.sh b/www/index.sh @@ -5,8 +5,8 @@ declare DTIME declare ON ON=false -OTIME=`<on_time` -if [[ $OTIME -lt 0 ]] +OTIME=`<on_file` +if [[ $OTIME -ge 0 ]] then ON=true TIME=`date +%s` @@ -48,6 +48,7 @@ Content-Type: text/html } setInterval(function(){ if(delta_t>=0){delta_t++}; updateDisplay();}, 1000); function timeSince(delta_t) { + var seconds = delta_t; var interval = Math.floor(delta_t / 31536000); if (interval > 1) { return interval + " years";