We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents bf3becd + 40d9ac1 commit ee6d2c0Copy full SHA for ee6d2c0
Client/core/CVersionUpdater.cpp
@@ -2770,7 +2770,7 @@ int CVersionUpdater::_PollDownload()
2770
if (m_JobInfo.bShowDownloadPercent)
2771
{
2772
const bool bIsDownloadedSizeRight = m_JobInfo.uiBytesDownloaded > 0 && m_JobInfo.iFilesize >= m_JobInfo.uiBytesDownloaded;
2773
- const float fDownloadedPercent = bIsDownloadedSizeRight ? Round(m_JobInfo.uiBytesDownloaded / m_JobInfo.iFilesize * 100.f) : 0;
+ const int fDownloadedPercent = bIsDownloadedSizeRight ? Round((float)m_JobInfo.uiBytesDownloaded / m_JobInfo.iFilesize * 100.f) : 0;
2774
GetQuestionBox().SetMessage(SString(_("%3d %% completed"), fDownloadedPercent));
2775
}
2776
if (m_JobInfo.iIdleTime > 1000 && m_JobInfo.iIdleTimeLeft > 500)
0 commit comments