From 9df9797cfd310be64ffb5769d006a72d8c0e5e42 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Sun, 5 Aug 2012 21:19:44 +0200 Subject: Cleaned up some world state variable testing code Kept the accountserver_startup time for now, since it could be useful. Reviewed-by: Stefan Beller --- src/account-server/main-account.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/account-server/main-account.cpp') diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp index 65c5efd1..ab4df75e 100644 --- a/src/account-server/main-account.cpp +++ b/src/account-server/main-account.cpp @@ -365,19 +365,11 @@ int main(int argc, char *argv[]) statTimer.start(); banTimer.start(); - // ------------------------------------------------------------------------- - // FIXME: for testing purposes only... - // writing accountserver startup time and svn revision to database as global - // world state variable - const time_t startup = time(NULL); + // Write startup time to database as system world state variable std::stringstream timestamp; - timestamp << startup; + timestamp << time(NULL); storage->setWorldStateVar("accountserver_startup", timestamp.str(), Storage::SystemMap); - const std::string revision = "$Revision$"; - storage->setWorldStateVar("accountserver_version", revision, - Storage::SystemMap); - // ------------------------------------------------------------------------- while (running) { -- cgit v1.2.3-70-g09d2