summaryrefslogtreecommitdiff
path: root/program/include/main.inc
diff options
context:
space:
mode:
Diffstat (limited to 'program/include/main.inc')
-rw-r--r--program/include/main.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/program/include/main.inc b/program/include/main.inc
index 5c88227fc..672e00dbd 100644
--- a/program/include/main.inc
+++ b/program/include/main.inc
@@ -2094,7 +2094,7 @@ function rcube_upload_progress()
$status = apc_fetch($prefix . $params['name']);
if (!empty($status)) {
- $status['percent'] = $status['current']/$status['total']*100;
+ $status['percent'] = round($status['current']/$status['total']*100);
$params = array_merge($status, $params);
}
}