uptime: Correctly print pretty/short format

uptime -p would show empty output after 52 weeks of uptime. This commit
is largely the work of Ed but reformatted for newlib branch.

Signed-off-by: Craig Small <csmall@dropbear.xyz>

References:
 procps-ng/procps!141
 procps-ng/procps#217
This commit is contained in:
ed neville
2021-10-14 19:37:42 +11:00
committed by Craig Small
parent 5f760d5085
commit 0496b39876
2 changed files with 39 additions and 2 deletions

1
NEWS
View File

@@ -25,6 +25,7 @@ procps-ng-NEXT
* top: summary area memory lines can print two abreast
* top: added two new autogroup fields
* top: added long versions of command line options
* uptime: print short/pretty format correctly issue #217
* vmstat: add -y option to remove first line merge !72
procps-ng-3.3.17