diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-11-06 17:29:47 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-11-07 18:54:37 +0100 |
commit | 80f0899c16931b41b51b062a3d020781c033bc87 (patch) | |
tree | c761bc1539c03a75a2aea7cf5a08701f4c13803e /src/account-server | |
parent | e0fc91bd6a2830127b116f6a37f024e17ac594e7 (diff) | |
download | manaserv-80f0899c16931b41b51b062a3d020781c033bc87.tar.gz manaserv-80f0899c16931b41b51b062a3d020781c033bc87.tar.bz2 manaserv-80f0899c16931b41b51b062a3d020781c033bc87.tar.xz manaserv-80f0899c16931b41b51b062a3d020781c033bc87.zip |
Small cleanups in utils::Timer
* Not nice to pass boolean parameter to constructor for preventing the
timer from running on creation. Just call 'start' on it explicitly.
* getTimeInMillisec could be made static.
Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src/account-server')
-rw-r--r-- | src/account-server/main-account.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp index 19ffb23f..b0373db9 100644 --- a/src/account-server/main-account.cpp +++ b/src/account-server/main-account.cpp @@ -359,6 +359,9 @@ int main(int argc, char *argv[]) // Check for expired bans every 30 seconds utils::Timer banTimer(30000); + statTimer.start(); + banTimer.start(); + // ------------------------------------------------------------------------- // FIXME: for testing purposes only... // writing accountserver startup time and svn revision to database as global |