]> granicus.if.org Git - procps-ng/commit
uptime: Correctly print pretty/short format
authored neville <ed@s5h.net>
Thu, 14 Oct 2021 08:37:42 +0000 (19:37 +1100)
committerCraig Small <csmall@dropbear.xyz>
Thu, 14 Oct 2021 08:37:42 +0000 (19:37 +1100)
commit0496b39876d569fe1cecb76ad5ef212cd14c0374
tree3dd0366a52bc8fef8ab74610863b6e5f6bacb128
parent5f760d50850e6cb3d175c2e2e0c35c328eba78d7
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
NEWS
proc/uptime.c