diff --git a/cgroup.go b/cgroup.go index 7516d92..93fa99c 100644 --- a/cgroup.go +++ b/cgroup.go @@ -23,7 +23,7 @@ const ( const ( // 0x63677270 (ascii for 'cgrp') is the magic number for identifying a cgroup v2 // filesystem. - // Ref: https://docs.kernel.org/admin-guide/cgroup-v2.html#mounting + // Ref: https://docs.kernel.org/6.17/admin-guide/cgroup-v2.html#mounting cgroupV2MagicNumber = 0x63677270 ) diff --git a/cgroupv2.go b/cgroupv2.go index db825d2..a9ae957 100644 --- a/cgroupv2.go +++ b/cgroupv2.go @@ -12,7 +12,7 @@ import ( ) // Paths for CgroupV2. -// Ref: https://docs.kernel.org/admin-guide/cgroup-v2.html +// Ref: https://docs.kernel.org/6.17/admin-guide/cgroup-v2.html const ( // Contains quota and period in microseconds separated by a space. cgroupV2CPUMax = "cpu.max" @@ -154,7 +154,7 @@ func (s cgroupV2Statter) memory(p Prefix) (*Result, error) { memoryUsagePath := filepath.Join(s.path, cgroupV2MemoryUsageBytes) memoryStatPath := filepath.Join(s.path, cgroupV2MemoryStat) - // https://docs.kernel.org/admin-guide/cgroup-v2.html#memory-interface-files + // https://docs.kernel.org/6.17/admin-guide/cgroup-v2.html#memory-interface-files r := &Result{ Unit: "B", Prefix: p,