mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 02:30:52 +00:00
Fix percentage math
This commit is contained in:
@@ -240,8 +240,8 @@ class DrmRenderer : public IFFmpegRenderer {
|
||||
if (m_TotalCommits != 0) {
|
||||
SDL_LogInfo(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Flip stats: %.2f%% async | %.2f%% sync",
|
||||
(float)m_AsyncCommits / (float)m_TotalCommits,
|
||||
(float)(m_TotalCommits - m_AsyncCommits) / (float)m_TotalCommits);
|
||||
(100.f * m_AsyncCommits) / m_TotalCommits,
|
||||
(100.f * (m_TotalCommits - m_AsyncCommits)) / m_TotalCommits);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user