mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-23 00:27:19 +00:00
Fix percentage math
This commit is contained in:
1 parent
d14cf984f4
commit
50a094c917
1 file changed
+2
-2
@@ -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