From 772533c1304779a65ed995107f9ac9f9590ea33a Mon Sep 17 00:00:00 2001 From: JT Smith Date: Fri, 7 Mar 2003 01:04:28 +0000 Subject: [PATCH] fixed file size abbreviations --- lib/WebGUI/Attachment.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/WebGUI/Attachment.pm b/lib/WebGUI/Attachment.pm index 0eb0254be..f5fb4b801 100644 --- a/lib/WebGUI/Attachment.pm +++ b/lib/WebGUI/Attachment.pm @@ -330,12 +330,12 @@ sub getSize { my (@attributes) = stat($_[0]->{_node}->getPath.$session{os}{slash}.$_[0]->getFilename); if ($attributes[7] > 1048576) { $size = round($attributes[7]/1048576); - $size .= 'mb'; + $size .= 'MB'; } elsif ($attributes[7] > 1024) { $size = round($attributes[7]/1024); - $size .= 'kb'; + $size .= 'kB'; } else { - $size = $attributes[7]."b"; + $size = $attributes[7]."B"; } return $size; }