Date: Wed, 1 Aug 2007 19:45:11 GMT From: "Constantine A. Murenin" <cnst@FreeBSD.org> To: Perforce Change Reviews <perforce@FreeBSD.org> Subject: PERFORCE change 124484 for review Message-ID: <200708011945.l71JjBHZ065559@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124484 Change 124484 by cnst@dale on 2007/08/01 19:44:26 change window settings to be more in line with other FreeBSD systat(1) modules Affected files ... .. //depot/projects/soc2007/cnst-sensors/usr.bin.systat/sensors.c#2 edit Differences ... ==== //depot/projects/soc2007/cnst-sensors/usr.bin.systat/sensors.c#2 (text+ko) ==== @@ -1,4 +1,4 @@ -/* $P4: //depot/projects/soc2007/cnst-sensors/usr.bin.systat/sensors.c#1 $ */ +/* $P4: //depot/projects/soc2007/cnst-sensors/usr.bin.systat/sensors.c#2 $ */ /* $FreeBSD$ */ /* $OpenBSD: sensors.c,v 1.11 2007/03/23 14:48:22 ckuethe Exp $ */ @@ -45,7 +45,7 @@ WINDOW * opensensors(void) { - return (subwin(stdscr, LINES-1-1, 0, 1, 0)); + return (subwin(stdscr, LINES-3-1, 0, MAINWIN_ROW, 0)); } void @@ -63,10 +63,10 @@ { wmove(wnd, 0, 0); wclrtobot(wnd); - mvwaddstr(wnd, 1, 0, "Sensor"); - mvwaddstr(wnd, 1, 34, "Value"); - mvwaddstr(wnd, 1, 45, "Status"); - mvwaddstr(wnd, 1, 58, "Description"); + mvwaddstr(wnd, 0, 0, "Sensor"); + mvwaddstr(wnd, 0, 34, "Value"); + mvwaddstr(wnd, 0, 45, "Status"); + mvwaddstr(wnd, 0, 58, "Description"); } void @@ -79,7 +79,7 @@ mib[0] = CTL_HW; mib[1] = HW_SENSORS; - row = 2; + row = 1; sensor_cnt = 0; wmove(wnd, row, 0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708011945.l71JjBHZ065559>