Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Uptime reported incorrectly on macOS #105

Closed
staceybellerose opened this issue Nov 12, 2021 · 2 comments
Closed

[BUG] Uptime reported incorrectly on macOS #105

staceybellerose opened this issue Nov 12, 2021 · 2 comments
Assignees
Labels
bug 🐛 A real glitch has been found
Projects

Comments

@staceybellerose
Copy link

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

  • Version used (4.Y.Z) : v4.13.2
  • Method of installation (distribution package, PyPI, Homebrew, sources) : Homebrew
  • Hardware type (laptop, server, Raspberry, hyper-visor) : laptop
  • Python version (3.Y.Z) : 3.9.7
  • Operating system and version : macOS Catalina 10.15.7
  • Graphical environment name and version : macOS
  • Connectivity (off-line, LAN only, Internet access) : Internet access

Additional context
N/A

@HorlogeSkynet
Copy link
Owner

HorlogeSkynet commented Nov 12, 2021

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 HorlogeSkynet changed the title Uptime reported incorrectly on macOS [BUG] [BUG] Uptime reported incorrectly on macOS Nov 12, 2021
@HorlogeSkynet HorlogeSkynet self-assigned this Nov 12, 2021
@HorlogeSkynet HorlogeSkynet added the bug 🐛 A real glitch has been found label Nov 12, 2021
@HorlogeSkynet HorlogeSkynet added this to TO DO in Core via automation Nov 12, 2021
@HorlogeSkynet HorlogeSkynet moved this from TO DO to IN PROGRESS in Core Nov 12, 2021
Core automation moved this from IN PROGRESS to DONE Nov 13, 2021
@HorlogeSkynet
Copy link
Owner

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

Bye 👋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 A real glitch has been found
Projects
Core
  
DONE
Development

No branches or pull requests

2 participants