summaryrefslogtreecommitdiffstats
path: root/logic/updater/DownloadTask.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/updater/DownloadTask.cpp')
-rw-r--r--logic/updater/DownloadTask.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/logic/updater/DownloadTask.cpp b/logic/updater/DownloadTask.cpp
index 76741748..1bbb0edf 100644
--- a/logic/updater/DownloadTask.cpp
+++ b/logic/updater/DownloadTask.cpp
@@ -154,7 +154,7 @@ void DownloadTask::fileDownloadFailed(QString reason)
void DownloadTask::fileDownloadProgressChanged(qint64 current, qint64 total)
{
- setProgress((int)(((float)current / (float)total) * 100));
+ setProgress(current, total);
}
QString DownloadTask::updateFilesDir()