1
0

Bugfix -- treat 1024 as the next prefix up.

This commit is contained in:
rWatcher 2012-04-16 20:48:39 -04:00
parent 6178d6b443
commit d23fa3c7a6

View File

@ -77,7 +77,7 @@ class rwinfo_block_Core {
$filesize_unit = array("B","kB","MB","GB","TB","PB","EB","ZB","YB");
$item_filesize = filesize($theme->item->file_path());
$unit_counter = 0;
while ($item_filesize > 1024) {
while ($item_filesize >= 1024) {
$item_filesize = $item_filesize / 1024;
$unit_counter++;
}