mirror of
https://github.com/sheumann/hush.git
synced 2024-08-21 11:28:57 +00:00
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>
This commit is contained in:
parent
b64bd16459
commit
85b1f292c9
@ -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).
|
* We also show STIME (standard says that -f shows it, -l doesn't).
|
||||||
*/
|
*/
|
||||||
puts("S UID PID PPID VSZ RSS TTY STIME TIME CMD");
|
puts("S UID PID PPID VSZ RSS TTY STIME TIME CMD");
|
||||||
|
#if ENABLE_FEATURE_PS_LONG
|
||||||
now = time(NULL);
|
now = time(NULL);
|
||||||
sysinfo(&info);
|
sysinfo(&info);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
puts(" PID USER VSZ STAT COMMAND");
|
puts(" PID USER VSZ STAT COMMAND");
|
||||||
|
Loading…
Reference in New Issue
Block a user