diff --git a/src/UpdateInstaller.cpp b/src/UpdateInstaller.cpp index d107fad..7a181e2 100644 --- a/src/UpdateInstaller.cpp +++ b/src/UpdateInstaller.cpp @@ -228,7 +228,7 @@ void UpdateInstaller::installFiles() ++filesInstalled; if (m_observer) { - double percentage = filesInstalled / (m_script->filesToInstall().size() * 100.0); + double percentage = (1.0 * filesInstalled / m_script->filesToInstall().size()) * 100.0; m_observer->updateProgress(static_cast(percentage)); } }