diff options
author | alecpl <alec@alec.pl> | 2011-07-21 06:41:53 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2011-07-21 06:41:53 +0000 |
commit | d8aff9a65131f5cca43d3cb1e77f8960e94a9626 (patch) | |
tree | 55e3ccc09b2337a6cdeaec6f947bcb6654fe5dc3 /program/include/main.inc | |
parent | 070bc8302e00f766076b4aaabfd2de4a0f2da66f (diff) |
- Round upload progress percentage value
Diffstat (limited to 'program/include/main.inc')
-rw-r--r-- | program/include/main.inc | 2 |
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); } } |