Commit 7a512ee7 authored by smash's avatar smash

lastchange was in ms, spaceapi expects seconds here

parent 266a4926
......@@ -93,7 +93,7 @@ ippoll.on('doneCount', function (num) {
ippoll.on('doneState', function (state) {
spaceanswer.state.open = state;
spaceanswer.state.lastchange = new Date().getTime();
spaceanswer.state.lastchange = new Date().getTime() / 1000;
simpleanswer.state = state;
simpleanswer.lastchange = spaceanswer.state.lastchange;
io.sockets.emit('sdata', {data: simpleanswer});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment