Make all cgroup stats output int64s instead of float64.
Docker-DCO-1.1-Signed-off-by: Victor Marmol <vmarmol@google.com> (github: vmarmol)
This commit is contained in:
parent
89b64d33ee
commit
c88ecf6acd
15 changed files with 72 additions and 78 deletions
|
@ -20,10 +20,10 @@ func TestCpuStats(t *testing.T) {
|
|||
t.Fatal(err)
|
||||
}
|
||||
|
||||
expected_stats := map[string]float64{
|
||||
"nr_periods": 2000.0,
|
||||
"nr_throttled": 200.0,
|
||||
"throttled_time": 42424242424.0,
|
||||
expected_stats := map[string]int64{
|
||||
"nr_periods": 2000,
|
||||
"nr_throttled": 200,
|
||||
"throttled_time": 42424242424,
|
||||
}
|
||||
expectStats(t, expected_stats, stats)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue