cpu_other.go 537 B

1234567891011
  1. // +build windows
  2. package cpu
  3. func systemCPUUsage() (usage uint64, err error) { return 10, nil }
  4. func totalCPUUsage() (usage uint64, err error) { return 10, nil }
  5. func perCPUUsage() (usage []uint64, err error) { return []uint64{10, 10, 10, 10}, nil }
  6. func cpuSets() (sets []uint64, err error) { return []uint64{0, 1, 2, 3}, nil }
  7. func cpuQuota() (quota int64, err error) { return 100, nil }
  8. func cpuPeriod() (peroid uint64, err error) { return 10, nil }
  9. func cpuMaxFreq() (feq uint64) { return 10 }