]> granicus.if.org Git - procps-ng/commit
library: uptime API changes
authorCraig Small <csmall@enc.com.au>
Sun, 21 Jun 2015 08:20:04 +0000 (18:20 +1000)
committerCraig Small <csmall@enc.com.au>
Fri, 26 Jun 2015 12:37:28 +0000 (22:37 +1000)
commitd7932b9a130f3b9734a273d551c15a6acc9c7d8a
treeb60b42a079e64f2cfd2721ff49e0a79e2b3523d9
parenta20e88e4e72067c1138721c6e15e2d1130bc9595
library: uptime API changes

Removed the printf_uptime, binaries can do printf easily enough.
sprint_uptime split into two as there wasn't a lot of common
code
 sprint_uptime(): old style uptime line
 sprint_uptime_short(): short new style "uptime -p"

Hertz_hack needed this, no sane system uses the code (I think)
so just assume 100 like we do in FreeBSD.
proc/libprocps.sym
proc/sysinfo.c
proc/uptime.c [new file with mode: 0644]
proc/uptime.h [new file with mode: 0644]
proc/whattime.c [deleted file]
proc/whattime.h [deleted file]
top/top.c
uptime.c
w.c