From 5b972aabaf27931cae6ac318c9b920d33593f07b Mon Sep 17 00:00:00 2001 From: Gerrit Renker Date: Mon, 17 Dec 2007 13:12:25 +0100 Subject: [PATCH] 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. --- stat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } /** -- 2.39.5