diff --git a/node/statusbot.js b/node/statusbot.js index 9e6d52e..036b1ef 100755 --- a/node/statusbot.js +++ b/node/statusbot.js @@ -93,7 +93,7 @@ ippoll.on('doneCount', function (num) { ippoll.on('doneState', function (state) { spaceanswer.state.open = state; - spaceanswer.state.lastchange = new Date().getTime() / 1000; + spaceanswer.state.lastchange = Math.floor(new Date().getTime() / 1000); simpleanswer.state = state; simpleanswer.lastchange = spaceanswer.state.lastchange; io.sockets.emit('sdata', {data: simpleanswer});