mirror of
https://github.com/bcicen/ctop.git
synced 2025-12-06 23:26:45 +08:00
update go version, deps for runc v1.0.0-rc92
This commit is contained in:
@@ -4,13 +4,14 @@ package collector
|
||||
|
||||
import (
|
||||
linuxproc "github.com/c9s/goprocinfo/linux"
|
||||
"github.com/opencontainers/runc/libcontainer/system"
|
||||
)
|
||||
|
||||
var sysMemTotal = getSysMemTotal()
|
||||
var clockTicksPerSecond = uint64(system.GetClockTicks())
|
||||
|
||||
const nanoSecondsPerSecond = 1e9
|
||||
const (
|
||||
clockTicksPerSecond uint64 = 100
|
||||
nanoSecondsPerSecond = 1e9
|
||||
)
|
||||
|
||||
func getSysMemTotal() int64 {
|
||||
stat, err := linuxproc.ReadMemInfo("/proc/meminfo")
|
||||
|
||||
Reference in New Issue
Block a user