summaryrefslogtreecommitdiffstats
path: root/web/api/queries
diff options
context:
space:
mode:
Diffstat (limited to 'web/api/queries')
-rw-r--r--web/api/queries/query.c2
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