deb2f1b616
If the system has been up more longer than a minute, we add 30 seconds to the uptime so that subsequent calculations will round to the nearest minute rather than truncate. However, since the introduction of libxo, we output the raw value after performing the adjustment. Rewrite so that we output the raw value first, then perform the adjustment and recalculate before outputting the humanized value. While there, reduce stack usage and avoid needless allocations. Sponsored by: Klara, Inc. Differential Revision: https://reviews.freebsd.org/D37128 |
||
---|---|---|
.. | ||
extern.h | ||
Makefile | ||
Makefile.depend | ||
pr_time.c | ||
proc_compare.c | ||
uptime.1 | ||
w.1 | ||
w.c |