1
0
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:
Thomas Hipp 2016-09-17 18:06:07 +02:00
parent c2c33439b4
commit 68ad8d603c
No known key found for this signature in database
GPG Key ID: 993408D1137B7D51
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)
)