mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
11 lines
291 B
Go
11 lines
291 B
Go
|
package cgroups
|
||
|
|
||
|
func getClockTicks() uint64 {
|
||
|
// The value comes from `C.sysconf(C._SC_CLK_TCK)`, and
|
||
|
// on Linux it's a constant which is safe to be hard coded,
|
||
|
// so we can avoid using cgo here.
|
||
|
// See https://github.com/containerd/cgroups/pull/12 for
|
||
|
// more details.
|
||
|
return 100
|
||
|
}
|