github.com/brandon-bethke-neudesic/moby@v1.13.1/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  }