Skip to content

Commit b0f0147

Browse files
daerSeebaerabh
authored andcommitted
change graph score offset thresholds to match values from monitor scorer
1 parent 1010495 commit b0f0147

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

client/src/utils/dom-utils.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ export const COLORS: ChartColors = {
5353

5454
// Threshold values for chart display
5555
export const THRESHOLDS: ChartThresholds = {
56+
// values taken from https://github.com/ntppool/monitor/blob/main/scorer/statusscore/statusscore.go#L72
5657
offset: {
57-
good: 0.05,
58-
warning: 0.2,
58+
good: 0.025,
59+
warning: 0.100,
5960
max: 2,
6061
min: -2
6162
},

0 commit comments

Comments
 (0)