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

docs: add -s/--since of uptime to extensions #6391

Merged
merged 2 commits into from
May 12, 2024

Conversation

cakebaker
Copy link
Contributor

No description provided.

Copy link

GNU testsuite comparison:

Skipping an intermittent issue tests/tail/inotify-dir-recreate (passes in this run but fails in the 'main' branch)

@sylvestre
Copy link
Contributor

Fun, on Debian:

$ LANG=C /usr/bin/uptime --version
uptime from procps-ng 4.0.4
$  /usr/bin/uptime -s
2024-05-01 13:50:56

With the coreutils:

$ LANG=C ./uptime -s
./uptime: invalid option -- 's'

docs/src/extensions.md Outdated Show resolved Hide resolved
@cakebaker
Copy link
Contributor Author

Another option is to remove -s/--since here in the coreutils version of uptime and move it to the (not yet existing) procps version as I think we have to implement uptime twice anyway due to their different behavior:

// proc-ps
$ LANG=C /usr/bin/uptime
 07:04:57 up 34 min,  1 user,  load average: 0.14, 0.27, 0.58
// GNU coreutils
$ LANG=C ./projects/gnu/src/uptime
 07:05:02  up   0:34,  5 users,  load average: 0.13, 0.27, 0.57

@tertsdiepraam
Copy link
Member

That different number of users is really surprising...

Co-authored-by: Sylvestre Ledru <[email protected]>
Copy link

GNU testsuite comparison:

Skip an intermittent issue tests/tail/inotify-dir-recreate (fails in this run but passes in the 'main' branch)

@sylvestre sylvestre merged commit 23d5235 into uutils:main May 12, 2024
65 of 68 checks passed
@cakebaker cakebaker deleted the docs_uptime_extension branch May 12, 2024 14:38
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