Bugfix -- treat 1024 as the next prefix up.
This commit is contained in:
parent
6178d6b443
commit
d23fa3c7a6
|
@ -77,7 +77,7 @@ class rwinfo_block_Core {
|
||||||
$filesize_unit = array("B","kB","MB","GB","TB","PB","EB","ZB","YB");
|
$filesize_unit = array("B","kB","MB","GB","TB","PB","EB","ZB","YB");
|
||||||
$item_filesize = filesize($theme->item->file_path());
|
$item_filesize = filesize($theme->item->file_path());
|
||||||
$unit_counter = 0;
|
$unit_counter = 0;
|
||||||
while ($item_filesize > 1024) {
|
while ($item_filesize >= 1024) {
|
||||||
$item_filesize = $item_filesize / 1024;
|
$item_filesize = $item_filesize / 1024;
|
||||||
$unit_counter++;
|
$unit_counter++;
|
||||||
}
|
}
|
||||||
|
|
Reference in New Issue
Block a user