From d23fa3c7a6f3f361b7bee1e38c146a99c8806c63 Mon Sep 17 00:00:00 2001 From: rWatcher Date: Mon, 16 Apr 2012 20:48:39 -0400 Subject: [PATCH] Bugfix -- treat 1024 as the next prefix up. --- 3.0/modules/rwinfo/helpers/rwinfo_block.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/3.0/modules/rwinfo/helpers/rwinfo_block.php b/3.0/modules/rwinfo/helpers/rwinfo_block.php index a5de83ef..57d654f2 100644 --- a/3.0/modules/rwinfo/helpers/rwinfo_block.php +++ b/3.0/modules/rwinfo/helpers/rwinfo_block.php @@ -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++; }