summaryrefslogtreecommitdiffstats
path: root/src/account-server
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-05 21:19:44 +0200
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-08-05 22:40:31 +0200
commit9df9797cfd310be64ffb5769d006a72d8c0e5e42 (patch)
tree3f0ad6e22aa5038ad73421d33df992329b240212 /src/account-server
parentad8cae4095a1efe19f9b8ea87a49fd78ab76fc24 (diff)
downloadmanaserv-9df9797cfd310be64ffb5769d006a72d8c0e5e42.tar.gz
manaserv-9df9797cfd310be64ffb5769d006a72d8c0e5e42.tar.xz
manaserv-9df9797cfd310be64ffb5769d006a72d8c0e5e42.zip
Cleaned up some world state variable testing code
Kept the accountserver_startup time for now, since it could be useful. Reviewed-by: Stefan Beller
Diffstat (limited to 'src/account-server')
-rw-r--r--src/account-server/main-account.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp
index 65c5efd..ab4df75 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)
{