Throttle.cc (8645:89929730804b) | Throttle.cc (9117:49116b947194) |
---|---|
1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 224 unchanged lines hidden (view full) --- 233 234 for (int i = 0; i < m_message_counters.size(); i++) { 235 for (int j = 0; j < m_message_counters[i].size(); j++) { 236 m_message_counters[i][j] = 0; 237 } 238 } 239} 240 | 1/* 2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; --- 224 unchanged lines hidden (view full) --- 233 234 for (int i = 0; i < m_message_counters.size(); i++) { 235 for (int j = 0; j < m_message_counters[i].size(); j++) { 236 m_message_counters[i][j] = 0; 237 } 238 } 239} 240 |
241void 242Throttle::printConfig(ostream& out) const 243{ 244} 245 | |
246double 247Throttle::getUtilization() const 248{ 249 return 100.0 * double(m_links_utilized) / 250 double(g_eventQueue_ptr->getTime()-m_ruby_start); 251} 252 253void --- 20 unchanged lines hidden --- | 241double 242Throttle::getUtilization() const 243{ 244 return 100.0 * double(m_links_utilized) / 245 double(g_eventQueue_ptr->getTime()-m_ruby_start); 246} 247 248void --- 20 unchanged lines hidden --- |