pstats: Fix flame graph showing old results when opening in non-running session

This commit is contained in:
rdb 2022-12-02 20:45:53 +01:00
parent fd7f738365
commit 12c51fe2f6

View File

@ -40,7 +40,7 @@ PStatFlameGraph(PStatMonitor *monitor,
// NB. This won't call force_redraw() (which we can't do yet) because average
// mode is true
update_data();
update();
_time_width = _stack.get_net_value(false);
if (_time_width == 0.0) {
_time_width = 1.0 / pstats_target_frame_rate;