Garnet: Correct computation of link utilization
authorNilay Vaish <nilay@cs.wisc.edu>
Sat, 28 Apr 2012 21:57:31 +0000 (16:57 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Sat, 28 Apr 2012 21:57:31 +0000 (16:57 -0500)
The computation for link utilization was incorrect for the flexible network.
The utilization was being divided twice by the total time.

src/mem/ruby/network/garnet/flexible-pipeline/NetworkLink.cc

index 3886be69e26ff1b7522b32632f9d5d5c07af7785..7da87e077c35b22b004a37760954d8de6dd03de0 100644 (file)
@@ -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