HorlogeSkynet / archey4

:computer: Maintained fork of the original Archey (Linux) system tool
https://git.io/archey4
GNU General Public License v3.0
295 stars 37 forks source link

[BUG] Uptime reported incorrectly on macOS #105

Closed staceybellerose closed 3 years ago

staceybellerose commented 3 years ago

Describe the bug The uptime displayed on macOS is incorrect and does not match the time reported by uptime.

Expected behavior The uptime displayed matches the time reported by uptime.

Screenshots

Screen Shot 2021-11-11 at 8 08 09 PM

Environment

Additional context N/A

HorlogeSkynet commented 3 years ago

Hey @staceybellerose, thanks for opening this up. It looks like we are dealing with inconsistencies related to Python's time.CLOCK_UPTIME_RAW behavior (Python 3.8+, macOS 10.12+). Returned value does not take into account the time the system spent being asleep. I'll try to fix this soon. Bye 👋


EDIT : related to libuv/libuv#2891

HorlogeSkynet commented 3 years ago

Just released as v4.13.3, on its way to Homebrew : Homebrew/homebrew-core#89334

Bye :wave: