mirror of https://github.com/shirou/gopsutil
process, v3/process: use SC_CLK_TCK sysconf value instead of hard-coding clock ticks
The github.com/tklauser/go-sysconf package is already a dependency used in the cpu and v3/cpu packages to determine clock ticks using `sysconf.Sysconf(sysconf.SC_CLK_TCK)`, see #1036. Use the same in packages process and v3/process as well instead of hard-coding clock ticks to 100.pull/1081/head
parent
25b4a07b16
commit
611c8b576e
Loading…
Reference in New Issue