summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-19 10:57:29 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-01-19 10:57:29 +0000
commit5ce0af3366f69fa09cb54e19d349637f43b57548 (patch)
tree4002db781558fd7893845f80f6fffb46e670d82c
parent92480d918c768b02c6ec4a2daf9700bf73efb59d (diff)
downloadhercules-5ce0af3366f69fa09cb54e19d349637f43b57548.tar.gz
hercules-5ce0af3366f69fa09cb54e19d349637f43b57548.tar.bz2
hercules-5ce0af3366f69fa09cb54e19d349637f43b57548.tar.xz
hercules-5ce0af3366f69fa09cb54e19d349637f43b57548.zip
Added back periodic user count updates that got replaced in r11703, but are neccessary as the current method doesn't work correctly (bugreport:688)
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12090 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/chrif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/chrif.c b/src/map/chrif.c
index 390c53966..fa0f4529e 100644
--- a/src/map/chrif.c
+++ b/src/map/chrif.c
@@ -1448,5 +1448,8 @@ int do_init_chrif(void)
// wipe stale data for timed-out client connection requests
add_timer_interval(gettick() + 1000, auth_db_cleanup, 0, 0, 30 * 1000);
+ // send the user count every 10 seconds, to hide the charserver's online counting problem
+ add_timer_interval(gettick() + 1000, send_usercount_tochar, 0, 0, UPDATE_INTERVAL);
+
return 0;
}