summaryrefslogtreecommitdiff
path: root/src/dev/etherdevice.cc
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2010-06-15 01:18:36 -0700
committerNathan Binkert <nate@binkert.org>2010-06-15 01:18:36 -0700
commit86a93fe7b9576045b5e085965ec85692379823e7 (patch)
treeb6132ca65b7a1374212609b1904a316cbad90616 /src/dev/etherdevice.cc
parent54d813adcaf6d5eda4040c20bae1706b0a78324b (diff)
downloadgem5-86a93fe7b9576045b5e085965ec85692379823e7.tar.xz
stats: only consider a formula initialized if there is a formula
Diffstat (limited to 'src/dev/etherdevice.cc')
-rw-r--r--src/dev/etherdevice.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/dev/etherdevice.cc b/src/dev/etherdevice.cc
index 5341c02c4..59febcdc5 100644
--- a/src/dev/etherdevice.cc
+++ b/src/dev/etherdevice.cc
@@ -119,7 +119,7 @@ EtherDevice::regStats()
.precision(0)
;
- descDmaWrBytes
+ descDmaWrBytes
.name(name() + ".descDmaWriteBytes")
.desc("number of descriptor bytes write w/ DMA")
.precision(0)
@@ -364,4 +364,5 @@ EtherDevice::regStats()
txPacketRate = txPackets / simSeconds;
rxPacketRate = rxPackets / simSeconds;
+ totPacketRate = totPackets / simSeconds;
}