diff options
Diffstat (limited to 'dev')
-rw-r--r-- | dev/ns_gige.cc | 4 | ||||
-rw-r--r-- | dev/ns_gige.hh | 16 |
2 files changed, 10 insertions, 10 deletions
diff --git a/dev/ns_gige.cc b/dev/ns_gige.cc index cae90a3b4..f5cbdbb9a 100644 --- a/dev/ns_gige.cc +++ b/dev/ns_gige.cc @@ -212,8 +212,8 @@ EtherDev::regStats() .prereq(rxBytes) ; - txBandwidth = txBytes * Statistics::constant(8) / simSeconds; - rxBandwidth = rxBytes * Statistics::constant(8) / simSeconds; + txBandwidth = txBytes * Stats::constant(8) / simSeconds; + rxBandwidth = rxBytes * Stats::constant(8) / simSeconds; txPacketRate = txPackets / simSeconds; rxPacketRate = rxPackets / simSeconds; } diff --git a/dev/ns_gige.hh b/dev/ns_gige.hh index cb6550720..ccc7f8e14 100644 --- a/dev/ns_gige.hh +++ b/dev/ns_gige.hh @@ -369,14 +369,14 @@ class EtherDev : public PciDev void regStats(); private: - Statistics::Scalar<> txBytes; - Statistics::Scalar<> rxBytes; - Statistics::Scalar<> txPackets; - Statistics::Scalar<> rxPackets; - Statistics::Formula txBandwidth; - Statistics::Formula rxBandwidth; - Statistics::Formula txPacketRate; - Statistics::Formula rxPacketRate; + Stats::Scalar<> txBytes; + Stats::Scalar<> rxBytes; + Stats::Scalar<> txPackets; + Stats::Scalar<> rxPackets; + Stats::Formula txBandwidth; + Stats::Formula rxBandwidth; + Stats::Formula txPacketRate; + Stats::Formula rxPacketRate; private: Tick pioLatency; |