From ba3e9cefde65401c68a6117019303e9237fad753 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Fri, 26 May 2017 13:45:15 +0100 Subject: [PATCH] Simplify ticks, as the value is a constant See for example in the Musl libc source code https://git.musl-libc.org/cgit/musl/tree/src/conf/sysconf.c#n29 This removes another cgo dependency in `containerd`. Signed-off-by: Justin Cormack --- ticks.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ticks.go b/ticks.go index fb335a15..e907ab36 100644 --- a/ticks.go +++ b/ticks.go @@ -1,10 +1,5 @@ package cgroups -/* -#include -*/ -import "C" - func getClockTicks() uint64 { - return uint64(C.sysconf(C._SC_CLK_TCK)) + return 100 }