2016-09-07 19:08:51 -04:00
|
|
|
// +build windows
|
2015-05-28 15:21:32 -04:00
|
|
|
|
2016-09-07 19:08:51 -04:00
|
|
|
package daemon
|
2015-05-28 15:21:32 -04:00
|
|
|
|
2016-09-07 19:08:51 -04:00
|
|
|
// platformNewStatsCollector performs platform specific initialisation of the
|
|
|
|
// statsCollector structure. This is a no-op on Windows.
|
|
|
|
func platformNewStatsCollector(s *statsCollector) {
|
2015-05-28 15:21:32 -04:00
|
|
|
}
|
|
|
|
|
2016-09-07 19:08:51 -04:00
|
|
|
// getSystemCPUUsage returns the host system's cpu usage in
|
|
|
|
// nanoseconds. An error is returned if the format of the underlying
|
|
|
|
// file does not match. This is a no-op on Windows.
|
|
|
|
func (s *statsCollector) getSystemCPUUsage() (uint64, error) {
|
|
|
|
return 0, nil
|
2015-05-28 15:21:32 -04:00
|
|
|
}
|