aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Ionescu-Idbohrn <cii@axis.com>2011-09-29 11:02:00 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-09-29 11:02:00 +0200
commit85b1f292c9c1526448db29b0f2590f8adefa6b04 (patch)
treec504841ad488f87426d602d905fa5b8a2d6c359a
parentb64bd16459636c8a7ccf75854e0a2df590d97dec (diff)
downloadbusybox-85b1f292c9c1526448db29b0f2590f8adefa6b04.tar.gz
ps: fix for !FEATURE_PS_LONG build
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--procps/ps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/procps/ps.c b/procps/ps.c
index 3815c1efa..4727b218b 100644
--- a/procps/ps.c
+++ b/procps/ps.c
@@ -693,8 +693,10 @@ int ps_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
* We also show STIME (standard says that -f shows it, -l doesn't).
*/
puts("S UID PID PPID VSZ RSS TTY STIME TIME CMD");
+#if ENABLE_FEATURE_PS_LONG
now = time(NULL);
sysinfo(&info);
+#endif
}
else {
puts(" PID USER VSZ STAT COMMAND");