github.com/docker/docker@v299999999.0.0-20200612211812-aaf470eca7b5+incompatible/daemon/stats/collector_windows.go (about) 1 package stats // import "github.com/docker/docker/daemon/stats" 2 3 // platformNewStatsCollector performs platform specific initialisation of the 4 // Collector structure. This is a no-op on Windows. 5 func platformNewStatsCollector(s *Collector) { 6 } 7 8 // getSystemCPUUsage returns the host system's cpu usage in 9 // nanoseconds. An error is returned if the format of the underlying 10 // file does not match. This is a no-op on Windows. 11 func (s *Collector) getSystemCPUUsage() (uint64, error) { 12 return 0, nil 13 } 14 15 func (s *Collector) getNumberOnlineCPUs() (uint32, error) { 16 return 0, nil 17 }