runden bitte!

This commit is contained in:
smash 2018-02-22 18:21:46 +01:00
parent 7a512ee77d
commit 48eaf7b9d1
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ ippoll.on('doneCount', function (num) {
ippoll.on('doneState', function (state) { ippoll.on('doneState', function (state) {
spaceanswer.state.open = 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.state = state;
simpleanswer.lastchange = spaceanswer.state.lastchange; simpleanswer.lastchange = spaceanswer.state.lastchange;
io.sockets.emit('sdata', {data: simpleanswer}); io.sockets.emit('sdata', {data: simpleanswer});