mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
4f0d95fa6e
Signed-off-by: Daniel Nephin <dnephin@docker.com>
17 lines
579 B
Go
17 lines
579 B
Go
package stats // import "github.com/docker/docker/daemon/stats"
|
|
|
|
// platformNewStatsCollector performs platform specific initialisation of the
|
|
// Collector structure. This is a no-op on Windows.
|
|
func platformNewStatsCollector(s *Collector) {
|
|
}
|
|
|
|
// getSystemCPUUsage returns the host system's cpu usage in
|
|
// nanoseconds. An error is returned if the format of the underlying
|
|
// file does not match. This is a no-op on Windows.
|
|
func (s *Collector) getSystemCPUUsage() (uint64, error) {
|
|
return 0, nil
|
|
}
|
|
|
|
func (s *Collector) getNumberOnlineCPUs() (uint32, error) {
|
|
return 0, nil
|
|
}
|