Skip to content

Commit dbb848e

Browse files
author
Lorenz Kästle
committed
Add missing indices for totals
The indices for perfdata values with the total measurements (e.g. memory full total) were previously missing. Since these elements are arranged in arrays the addressing was wrong and thresholds were assigned to the wrong values. This commit adds the missing indices
1 parent 8ee0de9 commit dbb848e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

internal/psi/psi.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,27 +13,33 @@ const (
1313
CPUSomeAvg10 uint = iota
1414
CPUSomeAvg60
1515
CPUSomeAvg300
16+
CPUSomeTotal
1617
CPUFullAvg10
1718
CPUFullAvg60
1819
CPUFullAvg300
20+
CPUFullTotal
1921
)
2022

2123
const (
2224
IoSomeAvg10 uint = iota
2325
IoSomeAvg60
2426
IoSomeAvg300
27+
IoSomeTotal
2528
IoFullAvg10
2629
IoFullAvg60
2730
IoFullAvg300
31+
IoFullTotal
2832
)
2933

3034
const (
3135
MemorySomeAvg10 uint = iota
3236
MemorySomeAvg60
3337
MemorySomeAvg300
38+
MemorySomeTotal
3439
MemoryFullAvg10
3540
MemoryFullAvg60
3641
MemoryFullAvg300
42+
MemoryFullTotal
3743
)
3844

3945
type PressureValue struct {

0 commit comments

Comments
 (0)