update go version, deps for runc v1.0.0-rc92

This commit is contained in:
Bradley Cicenas
2020-10-25 14:22:47 +00:00
parent 4d7d69d4cf
commit 03a0da3230
6 changed files with 89 additions and 56 deletions

View File

@@ -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")