From 8802e34cc831f8f35c861ec16b46456240d76fe4 Mon Sep 17 00:00:00 2001 From: ache Date: Tue, 27 Sep 1994 01:00:18 +0000 Subject: idle time == 0 printed now as "-" like in good old BSD skip cua* 3 chars as tty* 3 lchars --- usr.bin/w/pr_time.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'usr.bin/w/pr_time.c') diff --git a/usr.bin/w/pr_time.c b/usr.bin/w/pr_time.c index 87fffb3..73e44fa 100644 --- a/usr.bin/w/pr_time.c +++ b/usr.bin/w/pr_time.c @@ -98,6 +98,9 @@ pr_idle(idle) (void)printf(" %2d:%02d ", idle / SECSPERHOUR, (idle % SECSPERHOUR) / SECSPERMIN); + else if (idle / SECSPERMIN == 0) + (void)printf(" - "); + /* Else print the minutes idle. */ else (void)printf(" %2d ", idle / SECSPERMIN); -- cgit v1.1