Skip to content

Commit

Permalink
At #546 Add offset 1 for difference function in Canned Graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
jaegeunha committed Dec 12, 2024
1 parent a7b4873 commit 293f0b9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion frontend/src/utils/buildQueriesForLayouts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,12 @@ const buildCannedDashboardQuery = (
text += ` group by time(${defaultGroupBy})`
}

if (text.includes('non_negative_derivative') || text.includes('derivative')) {
if (
text.includes('non_negative_derivative') ||
text.includes('derivative') ||
text.includes('difference') ||
text.includes('non_negative_difference')
) {
text += ` offset 1`
}

Expand Down

0 comments on commit 293f0b9

Please sign in to comment.