summaryrefslogtreecommitdiffstats
path: root/database/contexts/query_target.c
diff options
context:
space:
mode:
Diffstat (limited to 'database/contexts/query_target.c')
-rw-r--r--database/contexts/query_target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/database/contexts/query_target.c b/database/contexts/query_target.c
index 69386a3f8..7759f85e8 100644
--- a/database/contexts/query_target.c
+++ b/database/contexts/query_target.c
@@ -1049,7 +1049,7 @@ QUERY_TARGET *query_target_create(QUERY_TARGET_REQUEST *qtr) {
qt->window.before = qt->request.before;
qt->window.options = qt->request.options;
- if(query_target_has_percentage_of_instance(qt))
+ if(query_target_has_percentage_of_group(qt))
qt->window.options &= ~RRDR_OPTION_PERCENTAGE;
rrdr_relative_window_to_absolute(&qt->window.after, &qt->window.before, &qt->window.now);