]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Use isfinite instead of isnormal because of '0.0'
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 10 Feb 2017 10:27:31 +0000 (10:27 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 10 Feb 2017 10:29:00 +0000 (10:29 +0000)
src/controller.c

index a0619674ddfffcd6a08ece534031211c97ed737f..bdbbe23c60a7404f5ad773d884285ac24848201a 100644 (file)
@@ -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 {