17 lines
469 B
Diff
17 lines
469 B
Diff
|
Index: procps-ng-4.0.4/src/w.c
|
||
|
===================================================================
|
||
|
--- procps-ng-4.0.4.orig/src/w.c
|
||
|
+++ procps-ng-4.0.4/src/w.c
|
||
|
@@ -613,8 +613,10 @@ static void showinfo(
|
||
|
if (u && *u->ut_line == ':')
|
||
|
/* idle unknown for xdm logins */
|
||
|
printf(" ?xdm? ");
|
||
|
- else
|
||
|
+ else if (tty[5])
|
||
|
print_time_ival7(idletime(tty), 0, stdout);
|
||
|
+ else
|
||
|
+ printf(" ");
|
||
|
|
||
|
/* jpcpu/pcpu */
|
||
|
if (longform) {
|