summaryrefslogtreecommitdiffstats
path: root/src/controller.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-10 10:27:31 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-02-10 10:29:00 +0000
commitf8acd626e885ad3767ed3c445989eb4c8d85aa83 (patch)
treee3ad0776456ebba5c95a3c288a186c4cef68cc16 /src/controller.c
parentf09750119bc4f04a78c713a720077f64e2923dde (diff)
downloadrspamd-f8acd626e885ad3767ed3c445989eb4c8d85aa83.tar.gz
rspamd-f8acd626e885ad3767ed3c445989eb4c8d85aa83.zip
[Minor] Use isfinite instead of isnormal because of '0.0'
Diffstat (limited to 'src/controller.c')
-rw-r--r--src/controller.c2
1 files changed, 1 insertions, 1 deletions
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 {