From d2cc89dcef8fddb4c2e78a067f187fad3eb0401d Mon Sep 17 00:00:00 2001 From: smash Date: Thu, 22 Feb 2018 19:41:09 +0100 Subject: [PATCH] simpleanswer.lastchange linked to spaceanswer.state.lastchange but expected ms instead. made that one independent so simpleanswer should hopefully work again... --- node/statusbot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/node/statusbot.js b/node/statusbot.js index e56029c..5497ac0 100755 --- a/node/statusbot.js +++ b/node/statusbot.js @@ -95,7 +95,8 @@ ippoll.on('doneState', function (state) { spaceanswer.state.open = state; spaceanswer.state.lastchange = Math.floor(new Date().getTime() / 1000); simpleanswer.state = state; - simpleanswer.lastchange = spaceanswer.state.lastchange; +// simpleanswer.lastchange = spaceanswer.state.lastchange; + simpleanswer.lastchange = new Date().getTime(); io.sockets.emit('sdata', {data: simpleanswer}); });