PERFORCE change 124484 for review

Constantine A. Murenin cnst at FreeBSD.org
Wed Aug 1 12:45:12 PDT 2007


http://perforce.freebsd.org/chv.cgi?CH=124484

Change 124484 by cnst at 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);


More information about the p4-projects mailing list