update Sun May 9 18:37:00 PDT 2010
[pkgsrc.git] / sysutils / xosview / patches / patch-ad
1 $NetBSD: patch-ad,v 1.8 2007/04/09 21:22:11 veego Exp $
2
3 --- bsd/netmeter.cc.orig        2003-10-10 06:55:37.000000000 +0200
4 +++ bsd/netmeter.cc
5 @@ -38,6 +38,7 @@ NetMeter::NetMeter( XOSView *parent, flo
6      netBandwidth_ = max;
7      total_ = netBandwidth_;
8      _lastBytesIn = _lastBytesOut = 0;
9 +    netIface_ = "False";
10      BSDGetNetInOut (&_lastBytesIn, &_lastBytesOut);
11    }
12  }
13 @@ -56,6 +57,7 @@ void NetMeter::checkResources( void ){
14      dodecay_ = parent_->isResourceTrue("netDecay");
15      useGraph_ = parent_->isResourceTrue("netGraph");
16      SetUsedFormat (parent_->getResource("netUsedFormat"));
17 +    netIface_ = parent_->getResource( "netIface" );
18    }
19  }
20