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.
This commit is contained in:
Nilay Vaish
2012-04-28 16:57:31 -05:00
parent 6ea7fcc54a
commit 04a558bb41

View 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