From b81250e7955cd569a7d072fbac1b792dd024419d Mon Sep 17 00:00:00 2001 From: henoheno Date: Thu, 5 Aug 2004 23:16:42 +0900 Subject: [PATCH] 1 for round(), not sprintf() --- plugin/attach.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/attach.inc.php b/plugin/attach.inc.php index 4a8a5e8..0db81f4 100644 --- a/plugin/attach.inc.php +++ b/plugin/attach.inc.php @@ -2,7 +2,7 @@ ///////////////////////////////////////////////// // PukiWiki - Yet another WikiWikiWeb clone. // -// $Id: attach.inc.php,v 1.46 2004/08/05 13:46:59 henoheno Exp $ +// $Id: attach.inc.php,v 1.47 2004/08/05 14:16:42 henoheno Exp $ // /* @@ -405,7 +405,7 @@ class AttachFile } $this->time_str = get_date('Y/m/d H:i:s', $this->time); $this->size = filesize($this->filename); - $this->size_str = sprintf('%01.1f', round($this->size)/1024) . 'KB'; + $this->size_str = sprintf('%01.1f', round($this->size/1024, 1)) . 'KB'; $this->type = attach_mime_content_type($this->filename); return TRUE; -- 2.11.0