-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
usr.bin/lastcomm: fix timestamp display #802
Conversation
usr.bin/lastcomm: fix timestamp display Adjust the lastcomm command to output timestamps with a precision of seconds. Reported by: Dr. Andreas Longwitz Sponsored by: DSS Gmbh
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.
👍
can you show us an example output?
does the man page need fixing?
BEFORE:
AFTER (a slightly more useful output):
The man page currently doesn't offer detailed information about output time precision, nor does it present any time-stamped examples. It's not a significant commit, but it can be quite bothersome if accounting is your final option for forensics. The information is available, so make use of it. |
This might be more "improve" than "fix" the timestamp display. Also the commit title appears to be repeated in the commit.
It looks like I agree for lastcomm that including seconds seems quite reasonable. I note that last(1) shows hours and minutes, e.g.:
which might be acceptable for reporting session start/end. |
Merged in 6f4ce7e |
Adjust the lastcomm command to output timestamps with a precision of seconds. Reported by: Dr. Andreas Longwitz Reviewed by: emaste Relnotes: Yes Sponsored by: DSS Gmbh Pull Request: #802
Adjust the lastcomm command to output timestamps with a precision of seconds. Reported by: Dr. Andreas Longwitz Reviewed by: emaste Relnotes: Yes Sponsored by: DSS Gmbh Pull Request: freebsd#802 (cherry picked from commit 6f4ce7e)
Adjust the lastcomm command to output timestamps with a precision of seconds. Reported by: Dr. Andreas Longwitz Reviewed by: emaste Relnotes: Yes Sponsored by: DSS Gmbh Pull Request: freebsd/freebsd-src#802
usr.bin/lastcomm: fix timestamp display
Adjust the lastcomm command to output timestamps with a precision of seconds.
Reported by: Dr. Andreas Longwitz
Sponsored by: DSS Gmbh