Skip to content

Commit

Permalink
fix absolute injection again (netdata#19497)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktsaou authored Jan 27, 2025
1 parent 0a834fd commit ae18037
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/api/v2/api_v2_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ int api_v2_data(RRDHOST *host __maybe_unused, struct web_client *w, char *url) {
group_by[0].group_by = RRDR_GROUP_BY_DIMENSION;

for(size_t g = 0; g < MAX_QUERY_GROUP_BY_PASSES ;g++) {
if (!(group_by[g].group_by & RRDR_GROUP_BY_DIMENSION) || (options & RRDR_OPTION_PERCENTAGE)) {
if ((group_by[g].group_by != RRDR_GROUP_BY_NONE && !(group_by[g].group_by & RRDR_GROUP_BY_DIMENSION)) ||
(options & RRDR_OPTION_PERCENTAGE)) {
options |= RRDR_OPTION_ABSOLUTE;
break;
}
Expand Down

0 comments on commit ae18037

Please sign in to comment.