Repository navigation
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #871 +/- ##
==========================================
+ Coverage 19.20% 20.28% +1.08%
==========================================
Files 68 68
Lines 10156 10111 -45
Branches 546 551 +5
==========================================
+ Hits 1950 2051 +101
+ Misses 8206 8060 -146
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
The
siandsocolumns printed the number of pages swapped per second, while procps-ng prints the amount of memory, in the-S/--unitsize (KiB by default). Its man page listssiandsoas "affected by the --unit option". On a machine with 4 KiB pages, uutils showed a quarter of the real value, and-Shad no effect:get_swap_infonow converts the page counts to bytes with the page size (sysconf(_SC_PAGESIZE), aspgrepdoes for the clock tick), divides by the period and scales withwith_unit, like the memory columns. This needs thelibcfeature ofuucoreinuu_vmstat, whichsnice,topandwalready enable.On my machine,
vmstat,vmstat -S k,vmstat -S Kandvmstat -S Mnow print the samesi/soas procps-ng. The unit testswap_rate_uses_unitcovers the conversion with fixed numbers.cargo fmtandcargo clippy -p uu_vmstat --all-targets -- -D warningsare clean.I used Claude Code (Opus 5.5) to help investigate and draft this change; I reproduced the bug and checked the fix myself.