@@ -557,12 +557,12 @@ void SwiftlyResourceMonitorManagerViewPlugin(CPlayerSlot slot, CCommandContext c
557557 usagesTable.add (" avg/max " );
558558 usagesTable.endOfRow ();
559559
560- std::map<std::string, std::map<std::string, std::set <float >>> data = g_ResourceMonitor->GetResmonTimeTables ();
560+ std::map<std::string, std::map<std::string, std::list <float >>> data = g_ResourceMonitor->GetResmonTimeTables ();
561561 if (data.count (plugin_id) > 0 )
562562 {
563- std::map<std::string, std::set <float >> pluginData = data.at (plugin_id);
563+ std::map<std::string, std::list <float >> pluginData = data.at (plugin_id);
564564 uint64_t idx = 0 ;
565- for (std::map<std::string, std::set <float >>::iterator it = pluginData.begin (); it != pluginData.end (); ++it)
565+ for (std::map<std::string, std::list <float >>::iterator it = pluginData.begin (); it != pluginData.end (); ++it)
566566 {
567567 ++idx;
568568 usagesTable.add (string_format (" %02d. " , idx));
@@ -579,7 +579,7 @@ void SwiftlyResourceMonitorManagerViewPlugin(CPlayerSlot slot, CCommandContext c
579579
580580 float avg = 0 ;
581581 uint64_t avgCount = 0 ;
582- for (std::set <float >::iterator ii = it->second .begin (); ii != it->second .end (); ++ii)
582+ for (std::list <float >::iterator ii = it->second .begin (); ii != it->second .end (); ++ii)
583583 {
584584 avg += *(ii);
585585 ++avgCount;
@@ -620,7 +620,7 @@ void SwiftlyResourceMonitorManagerView(CPlayerSlot slot, CCommandContext context
620620
621621 PLUGIN_PRINTF (" Resource Monitor" , " Plugin Resource Viewer\n " );
622622
623- std::map<std::string, std::map<std::string, std::set <float >>> data = g_ResourceMonitor->GetResmonTimeTables ();
623+ std::map<std::string, std::map<std::string, std::list <float >>> data = g_ResourceMonitor->GetResmonTimeTables ();
624624
625625 pluginsTable.add (" core " );
626626 pluginsTable.add (" [Swiftly] Core " );
@@ -635,8 +635,8 @@ void SwiftlyResourceMonitorManagerView(CPlayerSlot slot, CCommandContext context
635635 float avg = 0 ;
636636 uint64_t avgCount = 0 ;
637637
638- std::map<std::string, std::set <float >> pluginData = data.at (" core" );
639- for (std::map<std::string, std::set <float >>::iterator it = pluginData.begin (); it != pluginData.end (); ++it)
638+ std::map<std::string, std::list <float >> pluginData = data.at (" core" );
639+ for (std::map<std::string, std::list <float >>::iterator it = pluginData.begin (); it != pluginData.end (); ++it)
640640 {
641641 if (it->second .size () == 0 )
642642 continue ;
@@ -646,7 +646,7 @@ void SwiftlyResourceMonitorManagerView(CPlayerSlot slot, CCommandContext context
646646 max += *(maxend);
647647 ++maxCount;
648648
649- for (std::set <float >::iterator it2 = it->second .begin (); it2 != it->second .end (); ++it2)
649+ for (std::list <float >::iterator it2 = it->second .begin (); it2 != it->second .end (); ++it2)
650650 {
651651 avg += *(it2);
652652 ++avgCount;
@@ -686,8 +686,8 @@ void SwiftlyResourceMonitorManagerView(CPlayerSlot slot, CCommandContext context
686686 float avg = 0 ;
687687 uint64_t avgCount = 0 ;
688688
689- std::map<std::string, std::set <float >> pluginData = data.at (plugin->GetName ());
690- for (std::map<std::string, std::set <float >>::iterator it = pluginData.begin (); it != pluginData.end (); ++it)
689+ std::map<std::string, std::list <float >> pluginData = data.at (plugin->GetName ());
690+ for (std::map<std::string, std::list <float >>::iterator it = pluginData.begin (); it != pluginData.end (); ++it)
691691 {
692692 if (it->second .size () == 0 )
693693 continue ;
@@ -697,7 +697,7 @@ void SwiftlyResourceMonitorManagerView(CPlayerSlot slot, CCommandContext context
697697 max += *(maxend);
698698 ++maxCount;
699699
700- for (std::set <float >::iterator it2 = it->second .begin (); it2 != it->second .end (); ++it2)
700+ for (std::list <float >::iterator it2 = it->second .begin (); it2 != it->second .end (); ++it2)
701701 {
702702 avg += *(it2);
703703 ++avgCount;
0 commit comments