2016-09-07 16:08:51 -07:00
|
|
|
// +build windows
|
2015-05-28 12:21:32 -07:00
|
|
|
|
2017-01-04 18:01:59 +01:00
|
|
|
package stats
|
2015-05-28 12:21:32 -07:00
|
|
|
|
2016-09-07 16:08:51 -07:00
|
|
|
// platformNewStatsCollector performs platform specific initialisation of the
|
2017-01-04 18:01:59 +01:00
|
|
|
// Collector structure. This is a no-op on Windows.
|
|
|
|
func platformNewStatsCollector(s *Collector) {
|
2015-05-28 12:21:32 -07:00
|
|
|
}
|
|
|
|
|
2016-09-07 16:08:51 -07: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.
|
2017-01-04 18:01:59 +01:00
|
|
|
func (s *Collector) getSystemCPUUsage() (uint64, error) {
|
2016-09-07 16:08:51 -07:00
|
|
|
return 0, nil
|
2015-05-28 12:21:32 -07:00
|
|
|
}
|
2017-03-06 17:29:09 +00:00
|
|
|
|
|
|
|
func (s *Collector) getNumberOnlineCPUs() (uint32, error) {
|
|
|
|
return 0, nil
|
|
|
|
}
|