humansize moved to filecheck

It's not used there, but it makes sense to keep it there as it's the
inverse of parsesize.
master
Joey Hess 2008-08-27 15:31:48 -04:00
parent 8709ec2482
commit b9efeba972
2 changed files with 2 additions and 1 deletions

View File

@ -277,7 +277,7 @@ sub attachment_list ($) { #{{{
push @ret, {
"field-select" => '<input type="checkbox" name="attachment_select" value="'.$f.'" />',
link => htmllink($page, $page, $f, noimageinline => 1),
size => humansize((stat(_))[7]),
size => IkiWiki::Plugin::filecheck::humansize((stat(_))[7]),
mtime => displaytime($IkiWiki::pagemtime{$f}),
mtime_raw => $IkiWiki::pagemtime{$f},
};

View File

@ -53,6 +53,7 @@ sub parsesize ($) { #{{{
return $base;
} #}}}
# This is provided for other plugins that want to convert back the other way.
sub humansize ($) { #{{{
my $size=shift;