Skip to content

uptime: remove /proc dependency#13293

Open
oech3 wants to merge 3 commits into
uutils:mainfrom
oech3:uptime-proc
Open

uptime: remove /proc dependency#13293
oech3 wants to merge 3 commits into
uutils:mainfrom
oech3:uptime-proc

Conversation

@oech3

@oech3 oech3 commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Closes #13292

@oech3
oech3 marked this pull request as draft July 6, 2026 15:33
@oech3 oech3 changed the title uptime: simplify code & remove /proc dependency uptime: remove /proc dependency Jul 6, 2026
@oech3
oech3 marked this pull request as ready for review July 6, 2026 15:46
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

GNU testsuite comparison:

GNU test failed: tests/tail/truncate. tests/tail/truncate is passing on 'main'. Maybe you have to rebase?
Skip an intermittent issue tests/date/date-locale-hour (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/pr/bounded-memory (fails in this run but passes in the 'main' branch)
Skip an intermittent issue tests/tail/tail-n0f (fails in this run but passes in the 'main' branch)
Note: The gnu test tests/cut/cut-huge-range is now being skipped but was previously passing.
Congrats! The gnu test tests/expand/bounded-memory is now passing!
Congrats! The gnu test tests/rm/many-dir-entries-vs-OOM is now passing!

@sylvestre

Copy link
Copy Markdown
Contributor

i am struggling to understand the commit message when i see the diff
could you please improve the commit message? thanks

@oech3

oech3 commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

added commit message

Use clock_gettime instead of /proc on many unix platforms to run uptime without mounting /proc
@codspeed-hq

codspeed-hq Bot commented Jul 20, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

✅ 172 untouched benchmarks
⏩ 213 skipped benchmarks1


Comparing oech3:uptime-proc (80e9f71) with main (ef50d8b)

Open in CodSpeed

Footnotes

  1. 213 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports.

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.

uptime fails when /proc is masked

2 participants