github.com/openshift/moby-moby@v1.13.2-0.20170601211448-f5ec1e2936dc/daemon/stats_collector_windows.go (about) 1 // +build windows 2 3 package daemon 4 5 // platformNewStatsCollector performs platform specific initialisation of the 6 // statsCollector structure. This is a no-op on Windows. 7 func platformNewStatsCollector(s *statsCollector) { 8 } 9 10 // getSystemCPUUsage returns the host system's cpu usage in 11 // nanoseconds. An error is returned if the format of the underlying 12 // file does not match. This is a no-op on Windows. 13 func (s *statsCollector) getSystemCPUUsage() (uint64, error) { 14 return 0, nil 15 } 16 17 func (s *statsCollector) getNumberOnlineCPUs() (uint32, error) { 18 return 0, nil 19 }