summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gui/statuswindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/statuswindow.cpp b/src/gui/statuswindow.cpp
index c479fed7..94c95f68 100644
--- a/src/gui/statuswindow.cpp
+++ b/src/gui/statuswindow.cpp
@@ -408,7 +408,7 @@ void StatusWindow::updateProgressBar(ProgressBar *bar, int value, int max,
}
else
{
- float progress = (float) value / max;
+ float progress = ((float) value) / max;
if (percent)
bar->setText(strprintf("%2.2f", 100 * progress) + "%");