Add idle state to processes test
(cherry picked from commit 14b31a2354
)
This commit is contained in:
parent
fdb04702eb
commit
d8da77cb42
|
@ -44,7 +44,8 @@ func TestFromPS(t *testing.T) {
|
||||||
fields["zombies"] = int64(1)
|
fields["zombies"] = int64(1)
|
||||||
fields["running"] = int64(4)
|
fields["running"] = int64(4)
|
||||||
fields["sleeping"] = int64(34)
|
fields["sleeping"] = int64(34)
|
||||||
fields["total"] = int64(43)
|
fields["idle"] = int64(2)
|
||||||
|
fields["total"] = int64(45)
|
||||||
|
|
||||||
acc.AssertContainsTaggedFields(t, "processes", fields, map[string]string{})
|
acc.AssertContainsTaggedFields(t, "processes", fields, map[string]string{})
|
||||||
}
|
}
|
||||||
|
@ -172,6 +173,8 @@ U
|
||||||
Z
|
Z
|
||||||
D
|
D
|
||||||
S+
|
S+
|
||||||
|
I
|
||||||
|
I
|
||||||
`
|
`
|
||||||
|
|
||||||
const testProcStat = `10 (rcuob/0) %s 2 0 0 0 -1 2129984 0 0 0 0 0 0 0 0 20 0 %s 0 11 0 0 18446744073709551615 0 0 0 0 0 0 0 2147483647 0 18446744073709551615 0 0 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
const testProcStat = `10 (rcuob/0) %s 2 0 0 0 -1 2129984 0 0 0 0 0 0 0 0 20 0 %s 0 11 0 0 18446744073709551615 0 0 0 0 0 0 0 2147483647 0 18446744073709551615 0 0 17 0 0 0 0 0 0 0 0 0 0 0 0 0 0
|
||||||
|
|
Loading…
Reference in New Issue