cadvisor/container/libcontainer
Euan Kemp d2e11efba2 libcontainer: use real number of CPUs for usage
As of the 4.7 kernel, the cpustats field returned from libcontainer
contains values for every possible cpu (including nonexistent ones).
The extra values are all 0s.

If we assume that hotplug events won't happen, we can get a more
accurage cpu count by using runtime.NumCPU and then ignoring any values
beyond that.
2017-08-30 14:26:26 -07:00
..
testdata Add udp and udp6 network statistics 2017-04-10 20:41:51 +01:00
helpers_test.go libcontainer: use real number of CPUs for usage 2017-08-30 14:26:26 -07:00
helpers.go libcontainer: use real number of CPUs for usage 2017-08-30 14:26:26 -07:00