From f8acd626e885ad3767ed3c445989eb4c8d85aa83 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 10 Feb 2017 10:27:31 +0000 Subject: [PATCH] [Minor] Use isfinite instead of isnormal because of '0.0' --- src/controller.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.c b/src/controller.c index a0619674d..bdbbe23c6 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1150,7 +1150,7 @@ rspamd_controller_graph_point (gulong t, gulong step, for (j = 0; j < step; j++) { yval = acc[i + j * rrd_result->ds_count]; - if (!isnormal (yval)) { + if (!isfinite (yval)) { nan_cnt++; } else { -- 2.39.5