]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Filter yvalues for graph more precisely
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 6 Feb 2017 16:05:21 +0000 (16:05 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 6 Feb 2017 16:05:21 +0000 (16:05 +0000)
src/controller.c

index abb6ebe81496e53d44c9860d9579559319c6366f..a0619674ddfffcd6a08ece534031211c97ed737f 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 (isnan (yval)) {
+                       if (!isnormal (yval)) {
                                nan_cnt++;
                        }
                        else {