rename namespace Statistics to Stats
--HG-- extra : convert_revision : 28f1703f8d7d8cf33fb952ae450f66bdba860fb7
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user