diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-04-17 17:57:35 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2019-04-17 17:57:35 +0000 |
commit | 3b95e5be69c199a2a195c57aba12d88c242225ac (patch) | |
tree | 137b72ffaefe7f34bf21e975ccc9cc9ec0474564 /web/api/queries/median/median.c | |
parent | Adding upstream version 1.13.0. (diff) | |
download | netdata-upstream/1.14.0_rc0.tar.xz netdata-upstream/1.14.0_rc0.zip |
Adding upstream version 1.14.0~rc0.upstream/1.14.0_rc0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | web/api/queries/median/median.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/api/queries/median/median.c b/web/api/queries/median/median.c index 5a13b2e4d..31916c546 100644 --- a/web/api/queries/median/median.c +++ b/web/api/queries/median/median.c @@ -42,7 +42,7 @@ void grouping_add_median(RRDR *r, calculated_number value) { error("INTERNAL ERROR: median buffer overflow on chart '%s' - next_pos = %zu, series_size = %zu, r->group = %ld.", r->st->name, g->next_pos, g->series_size, r->group); } else { - if(isnormal(value)) + if(calculated_number_isnumber(value)) g->series[g->next_pos++] = (LONG_DOUBLE)value; } } @@ -64,7 +64,7 @@ calculated_number grouping_flush_median(RRDR *r, RRDR_VALUE_FLAGS *rrdr_value_op else value = (calculated_number)g->series[0]; - if(!isnormal(value)) { + if(!calculated_number_isnumber(value)) { value = 0.0; *rrdr_value_options_ptr |= RRDR_VALUE_EMPTY; } |