mirror of https://github.com/shirou/gopsutil
process: make `ClockTicks` arch-independent
The value for `ClockTicks` is defined as `100` by the Linux kernel for all currently supported architectures in Go. Therefore, there is no need to define this constant for each architecture separately. This fixes #260. Signed-off-by: Thomas Hipp <thomashipp@gmail.com>pull/261/head
parent
c2c33439b4
commit
68ad8d603c
@ -1,8 +0,0 @@
|
|||||||
// +build linux
|
|
||||||
// +build 386
|
|
||||||
|
|
||||||
package process
|
|
||||||
|
|
||||||
const (
|
|
||||||
ClockTicks = 100 // C.sysconf(C._SC_CLK_TCK)
|
|
||||||
)
|
|
@ -1,8 +0,0 @@
|
|||||||
// +build linux
|
|
||||||
// +build amd64
|
|
||||||
|
|
||||||
package process
|
|
||||||
|
|
||||||
const (
|
|
||||||
ClockTicks = 100 // C.sysconf(C._SC_CLK_TCK)
|
|
||||||
)
|
|
@ -1,8 +0,0 @@
|
|||||||
// +build linux
|
|
||||||
// +build arm
|
|
||||||
|
|
||||||
package process
|
|
||||||
|
|
||||||
const (
|
|
||||||
ClockTicks = 100 // C.sysconf(C._SC_CLK_TCK)
|
|
||||||
)
|
|
@ -1,8 +0,0 @@
|
|||||||
// +build linux
|
|
||||||
// +build arm64
|
|
||||||
|
|
||||||
package process
|
|
||||||
|
|
||||||
const (
|
|
||||||
ClockTicks = 100 // C.sysconf(C._SC_CLK_TCK)
|
|
||||||
)
|
|
Loading…
Reference in New Issue