Skip to content

Commit 0af95c6

Browse files
committed
Base 1000 vs 1024
1 parent 22a90cc commit 0af95c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/DB_Command.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ public function size( $args, $assoc_args ) {
829829
}
830830

831831
if ( $human_readable ) {
832-
$size_key = floor( log( $row['Size'] ) / log( 1024 ) );
832+
$size_key = floor( log( $row['Size'] ) / log( 1000 ) );
833833
$sizes = array( 'B', 'KB', 'MB', 'GB', 'TB' );
834834

835835
$size_format = isset( $sizes[ $size_key ] ) ? $sizes[ $size_key ] : $sizes[ 0 ];

0 commit comments

Comments
 (0)