1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

Merge pull request #261 from monstermunchkin/issues/260

process: make `ClockTicks` arch-independent
This commit is contained in:
shirou 2016-09-19 22:31:52 +09:00 committed by GitHub
commit 5332238407
5 changed files with 2 additions and 33 deletions

View File

@ -26,7 +26,8 @@ var (
)
const (
PrioProcess = 0 // linux/resource.h
PrioProcess = 0 // linux/resource.h
ClockTicks = 100 // C.sysconf(C._SC_CLK_TCK)
)
// MemoryInfoExStat is different between OSes

View File

@ -1,8 +0,0 @@
// +build linux
// +build 386
package process
const (
ClockTicks = 100 // C.sysconf(C._SC_CLK_TCK)
)

View File

@ -1,8 +0,0 @@
// +build linux
// +build amd64
package process
const (
ClockTicks = 100 // C.sysconf(C._SC_CLK_TCK)
)

View File

@ -1,8 +0,0 @@
// +build linux
// +build arm
package process
const (
ClockTicks = 100 // C.sysconf(C._SC_CLK_TCK)
)

View File

@ -1,8 +0,0 @@
// +build linux
// +build arm64
package process
const (
ClockTicks = 100 // C.sysconf(C._SC_CLK_TCK)
)