Commit Graph

3 Commits

Author SHA1 Message Date
leonzz
d5067208e4 fix boottime inconsistency with accurate uptime
`golang.org/x/sys/unix`.`Sysinfo` only provide uptime in whole second,
which leads to +-1s drifting in the boot time calculation. Reading from
/proc/stat is a better option as there's a reliable boot time directly
returned from linux kernel.
2024-11-04 19:09:27 +00:00
Stephen Augustus
481cf6fbe7 generated: Run hack/update-gofmt.sh
Signed-off-by: Stephen Augustus <foo@auggie.dev>
2021-08-24 15:47:49 -04:00
Ricardo Pchevuzinske Katz
a1b66f11b5 Change GetBootTime to work specificaly with FreeBSD
Signed-off-by: Ricardo Pchevuzinske Katz <ricardo.katz@gmail.com>
2020-12-22 16:52:47 -03:00