mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-11-11 19:10:55 +00:00
fps_metrics: fix incorrect iteration
This commit is contained in:
parent
edf7546d8d
commit
bda2af47b0
@ -54,7 +54,6 @@ class fpsMetrics {
|
||||
return acc + p.second;
|
||||
});
|
||||
it->value = sum / fps_stats.size();
|
||||
++it;
|
||||
}
|
||||
} else {
|
||||
try {
|
||||
@ -77,12 +76,12 @@ class fpsMetrics {
|
||||
break;
|
||||
|
||||
it->value = sorted_values[idx];
|
||||
++it;
|
||||
} catch (const std::invalid_argument& e) {
|
||||
SPDLOG_DEBUG("Failed to use fps metric value {}", it->name);
|
||||
it = metrics.erase(it);
|
||||
}
|
||||
}
|
||||
++it;
|
||||
}
|
||||
|
||||
run = false;
|
||||
|
Loading…
Reference in New Issue
Block a user