just running the query every minute instead of 10. so knifeban, entwatc and display playtime have it more updated

This commit is contained in:
jenz
2026-08-20 11:35:05 +02:00
parent 6cca898c7a
commit e731a1f3fc
@@ -162,7 +162,7 @@ public void OnPluginStart()
RegConsoleCmd("sm_topplaytime", Command_TopTime, "retreives top 1000 playtime highscores on all connected servers"); RegConsoleCmd("sm_topplaytime", Command_TopTime, "retreives top 1000 playtime highscores on all connected servers");
g_h_time_activity = CreateTimer(10.0, time_query_activity, INVALID_HANDLE, TIMER_REPEAT); g_h_time_activity = CreateTimer(10.0, time_query_activity, INVALID_HANDLE, TIMER_REPEAT);
CreateTimer(600.0, UpdateForward, _, TIMER_REPEAT); CreateTimer(60.0, UpdateForward, _, TIMER_REPEAT);
ConVar cvar; ConVar cvar;
HookConVarChange((cvar = CreateConVar("sm_mapchooser_afk_detect_time", "120", "Time in seconds until a player is considered as AFK and therefore excluded from player average time.")), Cvar_playerAFKTime); HookConVarChange((cvar = CreateConVar("sm_mapchooser_afk_detect_time", "120", "Time in seconds until a player is considered as AFK and therefore excluded from player average time.")), Cvar_playerAFKTime);