From 1285bfd33a716c04231e4a5c8b4e6bb61586f8b1 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Tue, 3 Jul 2012 11:44:55 +0200 Subject: [PATCH] Avoid overflowing calculation of large max size counter --- stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats.c b/stats.c index a43d39c7b..d3054d95b 100644 --- a/stats.c +++ b/stats.c @@ -250,7 +250,7 @@ stats_flush(void) need_cleanup = true; } if (conf->max_size != 0 - && counters->data[STATS_TOTALSIZE] * 1024 > conf->max_size / 16) { + && counters->data[STATS_TOTALSIZE] > conf->max_size / 1024 / 16) { need_cleanup = true; } -- 2.47.3