diff options
author | Vladimir Kobal <vlad@prokk.net> | 2018-10-24 21:06:37 +0300 |
---|---|---|
committer | Costa Tsaousis <costa@tsaousis.gr> | 2018-10-24 21:06:37 +0300 |
commit | 67f46998a42f0c534bd9860dece9547bb0ed8895 (patch) | |
tree | 39738bb92557df8b5f9ea1457c361d11e4412226 | |
parent | 866170672aee2c6dbeed5f79caf18755d850c32c (diff) |
Fix checking of grouping time (#4478)
-rw-r--r-- | web/api/queries/query.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/api/queries/query.c b/web/api/queries/query.c index a3b80763a9..4098fb7f20 100644 --- a/web/api/queries/query.c +++ b/web/api/queries/query.c @@ -451,7 +451,7 @@ RRDR *rrd2rrdr( else { // the points we should group to satisfy gtime group_points = group_time_requested / st->update_every; - if(unlikely(group_time_requested % group_points)) { + if(unlikely(group_time_requested % st->update_every)) { #ifdef NETDATA_INTERNAL_CHECKS info("INTERNAL CHECK: %s: requested gtime %ld secs, is not a multiple of the chart's data collection frequency %d secs", st->id, group_time_requested, st->update_every); #endif |