diff options
Diffstat (limited to 'src/game-server/main-game.cpp')
-rw-r--r-- | src/game-server/main-game.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/game-server/main-game.cpp b/src/game-server/main-game.cpp index 0bf088b..40b9935 100644 --- a/src/game-server/main-game.cpp +++ b/src/game-server/main-game.cpp @@ -311,9 +311,13 @@ int main(int argc, char *argv[]) // Handle all messages that are in the message queues accountHandler->process(); - if (worldTime % 100 == 0) + if (worldTime % 300 == 0) { accountHandler->sendStatistics(); + LOG_INFO("Total Account Output: " << accountHandler->totalOut() << " Bytes"); + LOG_INFO("Total Account Input: " << accountHandler->totalIn() << " Bytes"); + LOG_INFO("Total Client Output: " << gameHandler->calculateTotalOut() << " Bytes"); + LOG_INFO("Total Client Input: " << gameHandler->calculateTotalIn() << " Bytes"); } } else @@ -325,7 +329,7 @@ int main(int argc, char *argv[]) } gameHandler->process(); // Update all active objects/beings - GameState::update(); + GameState::update(worldTime); // Send potentially urgent outgoing messages gameHandler->flush(); } |