caadfe805d
- Fix the manpage path in the Makefile - Adapt the memmeter.cc changes to pagemeter so it doesn't use kmem to get uvmexp. - struct schedstate_percpu is no longer a public interface outside the kernel - Add netIface support for NetBSD. Now you can monitor only one network interface. See the manpage for more details. This change is allready present in the sourceforge tree. - PKGREVISION++
20 lines
665 B
Text
20 lines
665 B
Text
$NetBSD: patch-ad,v 1.8 2007/04/09 21:22:11 veego Exp $
|
|
|
|
--- bsd/netmeter.cc.orig 2003-10-10 06:55:37.000000000 +0200
|
|
+++ bsd/netmeter.cc
|
|
@@ -38,6 +38,7 @@ NetMeter::NetMeter( XOSView *parent, flo
|
|
netBandwidth_ = max;
|
|
total_ = netBandwidth_;
|
|
_lastBytesIn = _lastBytesOut = 0;
|
|
+ netIface_ = "False";
|
|
BSDGetNetInOut (&_lastBytesIn, &_lastBytesOut);
|
|
}
|
|
}
|
|
@@ -56,6 +57,7 @@ void NetMeter::checkResources( void ){
|
|
dodecay_ = parent_->isResourceTrue("netDecay");
|
|
useGraph_ = parent_->isResourceTrue("netGraph");
|
|
SetUsedFormat (parent_->getResource("netUsedFormat"));
|
|
+ netIface_ = parent_->getResource( "netIface" );
|
|
}
|
|
}
|
|
|