github.com/LazyboyChen7/engine@v17.12.1-ce-rc2+incompatible/daemon/stats/collector_windows.go (about)

     1  // +build windows
     2  
     3  package stats
     4  
     5  // platformNewStatsCollector performs platform specific initialisation of the
     6  // Collector structure. This is a no-op on Windows.
     7  func platformNewStatsCollector(s *Collector) {
     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 *Collector) getSystemCPUUsage() (uint64, error) {
    14  	return 0, nil
    15  }
    16  
    17  func (s *Collector) getNumberOnlineCPUs() (uint32, error) {
    18  	return 0, nil
    19  }