Fix checking of grouping time (#4478)
Vladimir Kobal committed
Oct 24, 2018 at 21:06 UTC
67f46998a42f0c534bd9860dece9547bb0ed8895
1 file changed
+1
-1
web/api/queries/query.c
+1
-1
@@ -451,7 +451,7 @@ RRDR *rrd2rrdr(
451
else {
452
// the points we should group to satisfy gtime
453
group_points = group_time_requested / st->update_every;
454
- if(unlikely(group_time_requested % group_points)) {
454
+ if(unlikely(group_time_requested % st->update_every)) {
455
#ifdef NETDATA_INTERNAL_CHECKS
456
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);
457
#endif