commit
335e12aa9a
1 changed files with 1 additions and 1 deletions
|
@ -1019,7 +1019,7 @@ sub select_array {
|
||||||
sub human_size {
|
sub human_size {
|
||||||
my ( $size, $n ) = ( shift, 0 );
|
my ( $size, $n ) = ( shift, 0 );
|
||||||
++$n and $size /= 1024 until $size < 1024;
|
++$n and $size /= 1024 until $size < 1024;
|
||||||
return sprintf "%.2f %s", $size, (qw[ bytes KB MB GB ])[$n];
|
return sprintf "%.2f %s", $size, (qw[ bytes KB MB GB TB ])[$n];
|
||||||
}
|
}
|
||||||
|
|
||||||
# MySQL Request one
|
# MySQL Request one
|
||||||
|
|
Loading…
Reference in a new issue