Skip to content

Commit

Permalink
IbPerfMon: Reset all monitor windows instead of only the first one
Browse files Browse the repository at this point in the history
  • Loading branch information
fruhland committed Oct 15, 2018
1 parent 1d9ee2c commit d1cb950
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/IbPerfMon/IbPerfMon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,11 @@ void IbPerfMon::Run() {
ScanFabric();

m_manager->AddMenuFunction("Help", [&] { m_manager->RegisterWindow(m_helpWindow); });
m_manager->AddMenuFunction("Reset Current", [&] {
m_manager->AddMenuFunction("Reset Counters", [&] {
m_monitorWindow[0]->ResetValues();
m_manager->RequestRefresh();
});
m_manager->AddMenuFunction("Reset All", [&] {
m_fabric->ResetCounters();
m_monitorWindow[1]->ResetValues();
m_monitorWindow[2]->ResetValues();
m_monitorWindow[3]->ResetValues();
m_manager->RequestRefresh();
});
m_manager->AddMenuFunction("Single Window", [&] {
Expand Down

0 comments on commit d1cb950

Please sign in to comment.