-
Notifications
You must be signed in to change notification settings - Fork 141
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
needs-restarting: Get boot time from systemd UnitsLoadStartTimestamp #560
needs-restarting: Get boot time from systemd UnitsLoadStartTimestamp #560
Conversation
Hello @evan-goode! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2024-10-11 22:41:01 UTC |
148048a
to
6391132
Compare
@bajertom said:
Marking this as RFR. @ppisar I'll request your review since you investigated the regression last time :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise, the code looks good. I will try to do some tests.
Manual testing did not find any problem. |
6391132
to
fb8c919
Compare
Resolves https://issues.redhat.com/browse/RHEL-35577. Get the boot time from UnitsLoadStartTimestamp if systemd is available, but make sure to use the kernel boot time for calculating process start times using data from procfs. The previous attempt [1] at this failed to do so and introduced a regression [2]. Also, get the kernel boot time from the btime field of /proc/stat instead of calculating it from /proc/uptime, to be consistent with what procps-ng does. [1] rpm-software-management#527 [2] https://issues.redhat.com/browse/RHEL-39775
fb8c919
to
17b38c8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Ansible test failure (mismatched libstdc++.so.6(CXXABI_1.3.15)) is unrelated.
Resolves https://issues.redhat.com/browse/RHEL-35577.
Get the boot time from
UnitsLoadStartTimestamp
if systemd is available, but make sure to use the kernel boot time for calculating process start times using data from procfs. The previous attempt [1] at this failed to do so and introduced a regression [2].Also, get the kernel boot time from the btime field of /proc/stat instead of calculating it from /proc/uptime, to be consistent with what procps-ng does.
[1] #527
[2] https://issues.redhat.com/browse/RHEL-39775