diff --git a/server.cpp b/server.cpp index 1fd09bc8..73c010b4 100644 --- a/server.cpp +++ b/server.cpp @@ -35,8 +35,6 @@ int main () { long nextTick = getTickCount(); while (cin.good()) { - long currentTick = getTickCount(); - nextTick += WIRE_CHUNK_MS; for (size_t n=0; (n 0) { usleep((nextTick - currentTick) * 1000); } + nextTick += WIRE_CHUNK_MS; } delete chunk; return 0;