Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/systat fix wrong sysctl



details:   https://anonhg.NetBSD.org/src/rev/116f1a3e1c39
branches:  trunk
changeset: 782856:116f1a3e1c39
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Nov 23 03:46:35 2012 +0000

description:
fix wrong sysctl

diffstat:

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

diffs (29 lines):

diff -r 54efd64c43ab -r 116f1a3e1c39 usr.bin/systat/pigs.c
--- a/usr.bin/systat/pigs.c     Fri Nov 23 03:37:27 2012 +0000
+++ b/usr.bin/systat/pigs.c     Fri Nov 23 03:46:35 2012 +0000
@@ -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 @@
        (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))



Home | Main Index | Thread Index | Old Index