aboutsummaryrefslogtreecommitdiff
path: root/src/status.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-11-18 19:16:46 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-11-18 19:16:46 -0300
commitfedf1e954a21f3aae6d7ffc618c8405aff85a136 (patch)
treea2197f2b89609fa8ac623e0d7ab9ef1421ac47da /src/status.cc
parent62f4d9e4429bcfc3b8b30f8bf6d81656ed57721b (diff)
downloadlogin-fedf1e954a21f3aae6d7ffc618c8405aff85a136.tar.gz
login-fedf1e954a21f3aae6d7ffc618c8405aff85a136.zip
a few adjustments
Diffstat (limited to 'src/status.cc')
-rw-r--r--src/status.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/status.cc b/src/status.cc
index 8399e98..3748c1d 100644
--- a/src/status.cc
+++ b/src/status.cc
@@ -1,6 +1,6 @@
#include "common.hh"
-static int g_LastStatusRefresh = 0;
+static int g_LastStatusRefresh;
static char g_StatusString[KB(2)];
struct XMLBuffer{
@@ -160,7 +160,7 @@ const char *GetStatusString(void){
if(GetWorld(g_Config.StatusWorld, &World) == 0){
WorldName = World.Name;
if(World.LastStartup != 0 && World.LastStartup > World.LastShutdown){
- Uptime = (int)time(NULL) - World.LastStartup;
+ Uptime = TimeNow - World.LastStartup;
}
NumPlayers = World.NumPlayers;
MaxPlayers = World.MaxPlayers;