diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-07-17 00:04:22 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-07-17 00:04:22 -0300 |
commit | 665eff45cce85e00109ee7a4b7125eff52c7580c (patch) | |
tree | c6610627dee0be751f6c3c553597c682a2f7fb39 /npc/functions/global_event_handler.txt | |
parent | daf65ed9945542415c04a4e344a11ba95ddfe5f5 (diff) | |
download | serverdata-665eff45cce85e00109ee7a4b7125eff52c7580c.tar.gz serverdata-665eff45cce85e00109ee7a4b7125eff52c7580c.tar.bz2 serverdata-665eff45cce85e00109ee7a4b7125eff52c7580c.tar.xz serverdata-665eff45cce85e00109ee7a4b7125eff52c7580c.zip |
Align scoreboard reloading to log cleaner for single lag spikes. Port Confringo.
If it is an unacceptable lag, then the boss point scoreboard may end as OnInit only,
or taking a hidden entry for on-the-fly updates. We'll see in testserver.
Diffstat (limited to 'npc/functions/global_event_handler.txt')
-rw-r--r-- | npc/functions/global_event_handler.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/npc/functions/global_event_handler.txt b/npc/functions/global_event_handler.txt index f611e997..89df294c 100644 --- a/npc/functions/global_event_handler.txt +++ b/npc/functions/global_event_handler.txt @@ -35,10 +35,10 @@ OnPCDieEvent: // Cleanup: Retain chat logs for 24~48 hours // Cleanup: Retain item logs for 2 months -OnClock0500: +OnClock0501: query_sql("DELETE FROM `picklog` WHERE `time` < '"+sqldate(0, -2)+"'"); query_sql("DELETE FROM `zenylog` WHERE `time` < '"+sqldate(0, -2)+"'"); -OnClock1700: +OnClock1701: if (gettime(GETTIME_DAYOFMONTH) > 1) query_sql("DELETE FROM `chatlog` WHERE `time` < '"+sqldate(-1)+"'"); end; |