lastchange was in ms, spaceapi expects seconds here
This commit is contained in:
parent
266a492611
commit
7a512ee77d
|
@ -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();
|
spaceanswer.state.lastchange = 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});
|
||||||
|
|
Loading…
Reference in New Issue