summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2011-07-21 06:41:53 +0000
committeralecpl <alec@alec.pl>2011-07-21 06:41:53 +0000
commitd8aff9a65131f5cca43d3cb1e77f8960e94a9626 (patch)
tree55e3ccc09b2337a6cdeaec6f947bcb6654fe5dc3
parent070bc8302e00f766076b4aaabfd2de4a0f2da66f (diff)
- Round upload progress percentage value
-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);
}
}