stats_collector_windows.go 486 B

123456789101112131415
  1. // +build windows
  2. package daemon
  3. // platformNewStatsCollector performs platform specific initialisation of the
  4. // statsCollector structure. This is a no-op on Windows.
  5. func platformNewStatsCollector(s *statsCollector) {
  6. }
  7. // getSystemCPUUsage returns the host system's cpu usage in
  8. // nanoseconds. An error is returned if the format of the underlying
  9. // file does not match. This is a no-op on Windows.
  10. func (s *statsCollector) getSystemCPUUsage() (uint64, error) {
  11. return 0, nil
  12. }