summaryrefslogtreecommitdiffstats
path: root/lib/class/song.class.php
diff options
context:
space:
mode:
authorPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-10-15 19:16:42 +0000
committerPaul 'flowerysong' Arthur <flowerysong00@yahoo.com>2010-10-15 19:16:42 +0000
commit63031fb6c1b3dc31d2d9cc1d0e7148c827656922 (patch)
tree5c3b60b2cffaff77b64461155fcaab9c345f4d1d /lib/class/song.class.php
parent680e9f6206de1e17cdc63ebec498f6ebafa667b6 (diff)
downloadampache-63031fb6c1b3dc31d2d9cc1d0e7148c827656922.tar.gz
ampache-63031fb6c1b3dc31d2d9cc1d0e7148c827656922.tar.bz2
ampache-63031fb6c1b3dc31d2d9cc1d0e7148c827656922.zip
Use a function to format bytes -> human-readable sizes. Also bump catalog build
memory profiling logging to level 5; fixes FS#141.
Diffstat (limited to 'lib/class/song.class.php')
-rw-r--r--lib/class/song.class.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/class/song.class.php b/lib/class/song.class.php
index 48ddd451..b9f257a7 100644
--- a/lib/class/song.class.php
+++ b/lib/class/song.class.php
@@ -707,7 +707,7 @@ class Song extends database_object implements media {
$this->f_tags = Tag::get_display($tags,$this->id,'song');
// Format the size
- $this->f_size = sprintf("%.2f",($this->size/1048576));
+ $this->f_size = format_bytes($this->size);
return true;