diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2012-04-28 16:57:31 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2012-04-28 16:57:31 -0500 |
commit | 04a558bb4107b491f575c12d3a36ee78949b4272 (patch) | |
tree | 1da33f29964218894320500d4eed8d90bc1c858e /src | |
parent | 6ea7fcc54acc5f6dea3d93f8ae157ff8887c3c15 (diff) | |
download | gem5-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.cc | 4 |
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 |