From: Gerrit Renker Date: Mon, 17 Dec 2007 12:12:25 +0000 (+0100) Subject: 03_STAT_no-clients.diff X-Git-Tag: v0.3.0~46 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=5b972aabaf27931cae6ac318c9b920d33593f07b;p=paraslash.git 03_STAT_no-clients.diff Avoids messages like Dec 15 20:01:25 _tiptop 1 stat_client_write: 0 client(s) which would otherwise flood the debug log. --- diff --git a/stat.c b/stat.c index 0457a0f3..3d563d21 100644 --- a/stat.c +++ b/stat.c @@ -125,7 +125,8 @@ void stat_client_write(const char *msg, int itemnum) free(sc); dump_stat_client_list(); } - PARA_DEBUG_LOG("%d client(s)\n", num_clients); + if (num_clients) + PARA_DEBUG_LOG("%d client(s)\n", num_clients); } /**