Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/w One third of screen looks much better than half, f...



details:   https://anonhg.NetBSD.org/src/rev/4a3681d7189f
branches:  trunk
changeset: 574803:4a3681d7189f
user:      kim <kim%NetBSD.org@localhost>
date:      Sun Mar 13 04:08:16 2005 +0000

description:
One third of screen looks much better than half, for default maxhost.

diffstat:

 usr.bin/w/w.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r de4a3c6f5dc7 -r 4a3681d7189f usr.bin/w/w.c
--- a/usr.bin/w/w.c     Sun Mar 13 01:48:54 2005 +0000
+++ b/usr.bin/w/w.c     Sun Mar 13 04:08:16 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: w.c,v 1.67 2005/01/08 05:08:53 kim Exp $       */
+/*     $NetBSD: w.c,v 1.68 2005/03/13 04:08:16 kim Exp $       */
 
 /*-
  * Copyright (c) 1980, 1991, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)w.c        8.6 (Berkeley) 6/30/94";
 #else
-__RCSID("$NetBSD: w.c,v 1.67 2005/01/08 05:08:53 kim Exp $");
+__RCSID("$NetBSD: w.c,v 1.68 2005/03/13 04:08:16 kim Exp $");
 #endif
 #endif /* not lint */
 
@@ -321,8 +321,8 @@
        else
                ttywidth = ws.ws_col - 1;
 
-       if (!wflag && maxhost > (ttywidth / 2))
-               maxhost = ttywidth / 2;
+       if (!wflag && maxhost > (ttywidth / 3))
+               maxhost = ttywidth / 3;
 
        argwidth = printf("%-*s TTY     %-*s %*s  IDLE WHAT\n",
            maxname, "USER", maxhost, "FROM",



Home | Main Index | Thread Index | Old Index