diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-12-28 03:25:36 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-12-28 03:25:36 +0100 |
commit | 9137942b624a152f143662b58ebc7277b508cb50 (patch) | |
tree | d9462a7c6637de818fc64cb12c0fc80bf12ba481 /src | |
parent | d6eb729838a6dc494dc7a752599706a42ae9964e (diff) | |
download | manaserv-9137942b624a152f143662b58ebc7277b508cb50.tar.gz manaserv-9137942b624a152f143662b58ebc7277b508cb50.tar.bz2 manaserv-9137942b624a152f143662b58ebc7277b508cb50.tar.xz manaserv-9137942b624a152f143662b58ebc7277b508cb50.zip |
Tweaked the skip detection a bit more to show less groups of small skips in the log.
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/main-game.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp index 11c36509..a35c9531 100644 --- a/src/game-server/main-game.cpp +++ b/src/game-server/main-game.cpp @@ -350,9 +350,9 @@ int main(int argc, char *argv[]) { if (elapsedWorldTicks > WORLD_TICK_SKIP) { - LOG_WARN("Skipped "<< elapsedWorldTicks - WORLD_TICK_SKIP + LOG_WARN("Skipped "<< elapsedWorldTicks - 1 << " world tick due to insufficient CPU time."); - elapsedWorldTicks = WORLD_TICK_SKIP; + elapsedWorldTicks = 1; } worldTime++; elapsedWorldTicks--; |