Fix off by one in Linux interrupts collector (#721)
* Fix off by one in Linux interrupts collector * Fix off by one in CPU column handler. * Add test. * Enable interrupts in end-to-end test.
This commit is contained in:
parent
f6556e69ec
commit
ea250d73f4
4 changed files with 121 additions and 1 deletions
|
|
@ -33,4 +33,8 @@ func TestInterrupts(t *testing.T) {
|
|||
if want, got := "5031", interrupts["NMI"].values[1]; want != got {
|
||||
t.Errorf("want interrupts %s, got %s", want, got)
|
||||
}
|
||||
|
||||
if want, got := "4968", interrupts["NMI"].values[3]; want != got {
|
||||
t.Errorf("want interrupts %s, got %s", want, got)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue