server tick

git-svn-id: svn://elaine/murooma/trunk@108 d8a302eb-03bc-478d-80e4-98257eca68ef
This commit is contained in:
(no author) 2014-07-27 13:32:07 +00:00
parent 29d7fd372f
commit d684686b47

View file

@ -52,7 +52,7 @@ int main () {
nextTick += WIRE_CHUNK_MS; nextTick += WIRE_CHUNK_MS;
long currentTick = getTickCount(); long currentTick = getTickCount();
if (nextTick - currentTick > 0) if (nextTick > currentTick)
{ {
usleep((nextTick - currentTick) * 1000); usleep((nextTick - currentTick) * 1000);
} }