Module Name:    src
Committed By:   christos
Date:           Fri Nov 23 03:46:35 UTC 2012

Modified Files:
        src/usr.bin/systat: pigs.c

Log Message:
fix wrong sysctl


To generate a diff of this commit:
cvs rdiff -u -r1.32 -r1.33 src/usr.bin/systat/pigs.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/systat/pigs.c
diff -u src/usr.bin/systat/pigs.c:1.32 src/usr.bin/systat/pigs.c:1.33
--- src/usr.bin/systat/pigs.c:1.32	Thu Nov 22 22:33:05 2012
+++ src/usr.bin/systat/pigs.c	Thu Nov 22 22:46:35 2012
@@ -1,4 +1,4 @@
-/*	$NetBSD: pigs.c,v 1.32 2012/11/23 03:33:05 christos Exp $	*/
+/*	$NetBSD: pigs.c,v 1.33 2012/11/23 03:46:35 christos Exp $	*/
 
 /*-
  * Copyright (c) 1980, 1992, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)pigs.c	8.2 (Berkeley) 9/23/93";
 #endif
-__RCSID("$NetBSD: pigs.c,v 1.32 2012/11/23 03:33:05 christos Exp $");
+__RCSID("$NetBSD: pigs.c,v 1.33 2012/11/23 03:46:35 christos Exp $");
 #endif /* not lint */
 
 /*
@@ -150,8 +150,8 @@ initpigs(void)
 	(void) fetch_cptime(stime);
 
 	len = sizeof(mempages);
-	if (sysctlbyname("kern.physmem64", &mempages, &len, NULL, 0))
-		error("can't get \"kern.physmem64\": %s", strerror(errno));
+	if (sysctlbyname("hw.physmem64", &mempages, &len, NULL, 0))
+		error("can't get \"hw.physmem64\": %s", strerror(errno));
 
 	len = sizeof(ccpu);
 	if (sysctlbyname("kern.ccpu", &ccpu, &len, NULL, 0))

Reply via email to