ps: use separate get_uptime() and make it work on non-linux too
authorMichael Tokarev <mjt@tls.msk.ru>
Wed, 13 Jun 2012 00:51:56 +0000 (02:51 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Wed, 13 Jun 2012 00:52:28 +0000 (02:52 +0200)
commitac42e3de90ebf4b921035893e3670da63cad882c
tree3899d08bf7ff6bf43ef657ffa6debdb0fcac2fca
parent6979325592dd421ae4b02817ac8ac9ba5f362382
ps: use separate get_uptime() and make it work on non-linux too

Create get_uptime() function in procps/ps.c, and use it rather than
relying on linux-specific sysinfo() inline.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/ps.c