From fedf1e954a21f3aae6d7ffc618c8405aff85a136 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Tue, 18 Nov 2025 19:16:46 -0300 Subject: a few adjustments --- src/status.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/status.cc') 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; -- cgit v1.2.3