Skip to content

Commit 02d874b

Browse files
committed
Fix issue vpenso#4 (wrong string in the regex for nodes in reserved state)
1 parent 95a8da8 commit 02d874b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func ParseNodesMetrics(input []byte) *NodesMetrics {
7777
idle := regexp.MustCompile(`^idle`)
7878
maint := regexp.MustCompile(`^maint`)
7979
mix := regexp.MustCompile(`^mix`)
80-
resv := regexp.MustCompile(`^resv`)
80+
resv := regexp.MustCompile(`^res`)
8181
switch {
8282
case alloc.MatchString(state) == true:
8383
nm.alloc++

0 commit comments

Comments
 (0)