[git commit] ps: fix for !FEATURE_PS_LONG build

Denys Vlasenko vda.linux at googlemail.com
Thu Sep 29 09:02:00 UTC 2011


commit: http://git.busybox.net/busybox/commit/?id=85b1f292c9c1526448db29b0f2590f8adefa6b04
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Cristian Ionescu-Idbohrn <cii at axis.com>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 procps/ps.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/procps/ps.c b/procps/ps.c
index 3815c1e..4727b21 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");


More information about the busybox-cvs mailing list