ps: fix for !FEATURE_PS_LONG build
authorCristian Ionescu-Idbohrn <cii@axis.com>
Thu, 29 Sep 2011 09:02:00 +0000 (11:02 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Thu, 29 Sep 2011 09:02:00 +0000 (11:02 +0200)
Signed-off-by: Cristian Ionescu-Idbohrn <cii@axis.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/ps.c

index 3815c1efa600bb3aac9def0356f139fb68f81b8b..4727b218bbc2d7dfe607867953ccaea26ac7c732 100644 (file)
@@ -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");