summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2012-04-28 16:57:31 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2012-04-28 16:57:31 -0500
commit04a558bb4107b491f575c12d3a36ee78949b4272 (patch)
tree1da33f29964218894320500d4eed8d90bc1c858e /src
parent6ea7fcc54acc5f6dea3d93f8ae157ff8887c3c15 (diff)
downloadgem5-04a558bb4107b491f575c12d3a36ee78949b4272.tar.xz
Garnet: Correct computation of link utilization
The computation for link utilization was incorrect for the flexible network. The utilization was being divided twice by the total time.
Diffstat (limited to 'src')
-rw-r--r--src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc b/src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc
index 3886be69e..7da87e077 100644
--- a/src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc
+++ b/src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc
@@ -110,9 +110,7 @@ NetworkLink::getVcLoad()
double
NetworkLink::getLinkUtilization()
{
- Time m_ruby_start = m_net_ptr->getRubyStartTime();
- return (double(m_link_utilized)) /
- (double(g_eventQueue_ptr->getTime()-m_ruby_start));
+ return (double(m_link_utilized));
}
bool