mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-26 13:48:59 +08:00
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>
This commit is contained in:
parent
c2c33439b4
commit
68ad8d603c
@ -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
|
||||
|
@ -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…
x
Reference in New Issue
Block a user