Calculate CPU data percentages relative to active time span.

This commit is contained in:
Bartosz Taudul 2023-03-03 22:18:08 +01:00
parent 2f49caaa6e
commit fc7bd61576
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -525,7 +525,7 @@ void View::DrawCpuDataWindow()
}
const auto thisPid = m_worker.GetPid();
const auto rtimespan = 1.0 / m_worker.GetLastTime();
const auto rtimespan = 1.0 / ( m_worker.GetLastTime() - m_worker.GetFirstTime() );
const auto ty = ImGui::GetTextLineHeight();
auto& style = ImGui::GetStyle();