From d718cc7405b4e23276d223fe8e671324019647e4 Mon Sep 17 00:00:00 2001 From: Gergely POLONKAI Date: Sat, 19 May 2012 11:51:43 +0200 Subject: [PATCH] Maintenance function now starts in every 10 minutes instead of 3 seconds Signed-off-by: Gergely POLONKAI --- wmud/maintenance.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wmud/maintenance.c b/wmud/maintenance.c index 678d27a..984afd7 100644 --- a/wmud/maintenance.c +++ b/wmud/maintenance.c @@ -86,12 +86,12 @@ wmud_maintenance_check_players(wmudPlayer *player, gpointer user_data) gboolean wmud_maintenance(gpointer user_data) { - g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Starting maintenance..."); + g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Starting maintenance..."); /* Run through the player list, and generate a random password for each * newly registered player */ g_slist_foreach(players, (GFunc)wmud_maintenance_check_players, NULL); - g_log(G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, "Finished maintenance..."); + g_log(G_LOG_DOMAIN, G_LOG_LEVEL_INFO, "Finished maintenance..."); return TRUE; } @@ -199,7 +199,7 @@ wmud_maintenance_init(void) maint_loop = g_main_loop_new(maint_context, FALSE); /* Create the timeout source which will do the maintenance tasks */ - timeout_source = g_timeout_source_new_seconds(3); + timeout_source = g_timeout_source_new_seconds(600); g_source_set_callback(timeout_source, wmud_maintenance, NULL, NULL); g_source_attach(timeout_source, maint_context); g_source_unref(timeout_source);