ed neville
|
4a315c9230
|
Store sec and usec in terms of usec
Rather than attempt to convert usec to sec with division, add both
together and then divide.
This reduced the rounding errors on my system.
|
2023-05-02 09:08:37 +00:00 |
|
ed neville
|
0496b39876
|
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
|
2021-10-14 19:37:42 +11:00 |
|
ed
|
9975595b9b
|
pgrep.c: simplifying uptime call
|
2020-05-17 21:53:39 +10:00 |
|
ed
|
79a4eb6128
|
pgrep.c: Replacing seconds_since_boot with uptime as suggested by Craig Small
|
2020-05-17 21:53:39 +10:00 |
|
ed
|
41b9e62be7
|
pgrep.c: change to allow 'older than' style selection
pgrep.1: man page addition for above selection
Makefile.am: addition of global.c to include sections since boot in pgrep.
|
2020-05-17 21:53:36 +10:00 |
|
ed
|
7b4ad698cc
|
pgrep.c: Match based on process run state for issue 109
References:
procps-ng/procps#109
|
2019-03-20 20:59:00 +11:00 |
|
ed
|
e13eb8b75e
|
pgrep.c: Match based on process run state for issue 109
|
2019-03-05 07:53:59 +11:00 |
|