mirror of https://github.com/shirou/gopsutil
Cache the boot time after first query.
When fetching stats on all processes at once there's a non-trivial amount of time spent in the `BootTime` call. But since this value should never change during a live process, we can use a cached version for all subsequent calls.pull/289/head
parent
fc800d3fb4
commit
5afd6f21c9
Loading…
Reference in New Issue