mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-07 16:00:28 +03:00
Fix silly human readable sizes on browser
This commit is contained in:
parent
b7123b2f00
commit
6dbae12753
1 changed files with 1 additions and 1 deletions
|
|
@ -476,7 +476,7 @@ class FDroid
|
||||||
|
|
||||||
private function human_readable_size($size, $minDiv=0) {
|
private function human_readable_size($size, $minDiv=0) {
|
||||||
$si_prefix = array('bytes','kB','MB');
|
$si_prefix = array('bytes','kB','MB');
|
||||||
$div = 1000;
|
$div = 1024;
|
||||||
|
|
||||||
for($i=0;(abs($size) > $div && $i < count($si_prefix)) || $i<$minDiv;$i++) {
|
for($i=0;(abs($size) > $div && $i < count($si_prefix)) || $i<$minDiv;$i++) {
|
||||||
$size /= $div;
|
$size /= $div;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue