Skip to content
Snippets Groups Projects
Commit ba0f0aaf authored by Síle Ekaterin Liszka's avatar Síle Ekaterin Liszka
Browse files

Chessa::URI::Default: fix humanize()

parent ec4f7578
No related branches found
No related tags found
No related merge requests found
......@@ -100,7 +100,7 @@ sub head($self, $response, $uri, $on_info, $errors) {
my @units = split //, 'kMGTPEZY';
sub humanize($self, $size) {
my $radix = log($size) / log(1024);
my $radix = int(log($size) / log(1024));
$radix = 9 if $radix > 9;
my $val = $size / (1024 ** $radix);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment