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

Fixed time reporting incorrectly in hostat #47

Closed
wants to merge 2 commits into from

Conversation

mjwaxios
Copy link

@mjwaxios mjwaxios commented Jul 5, 2024

On my builds of hostat the date would show as 1888, this is due to the way the endianness happens for ints. Corrected by shifting each byte into a u_long

@larsbrinkhoff
Copy link
Contributor

@bictorv, I'm checking all ITS submodules before doing an all around refresh. Is this pull request something that would be good to include?

@bictorv
Copy link
Owner

bictorv commented Jan 23, 2025

Thanks for the reminders, I just pushed an update to master (simplified the code a tiny bit, and removed the commented-out code). Please check that it works correctly on big-endians, since I only have little-endian machines.

The second commit (adding #! to .py files) should be a separate PR (one issue per PR, please), and should only be done for "programs", i.e. those who check if __name__ == "__main__".

@bictorv bictorv closed this Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants