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
Thomas Hipp 9 years ago
parent c2c33439b4
commit 68ad8d603c
No known key found for this signature in database
GPG Key ID: 993408D1137B7D51

@ -26,7 +26,8 @@ var (
) )
const ( const (
PrioProcess = 0 // linux/resource.h PrioProcess = 0 // linux/resource.h
ClockTicks = 100 // C.sysconf(C._SC_CLK_TCK)
) )
// MemoryInfoExStat is different between OSes // 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…
Cancel
Save