It's not used there, but it makes sense to keep it there as it's the
inverse of parsesize.
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},
};
return $base;
} #}}}
+# This is provided for other plugins that want to convert back the other way.
sub humansize ($) { #{{{
my $size=shift;