Skip to content

Commit

Permalink
Add dicimal numbers to wp db size
Browse files Browse the repository at this point in the history
  • Loading branch information
wojsmol committed Jul 5, 2021
1 parent 6bc7b50 commit cba6e0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DB_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ public function size( $args, $assoc_args ) {
}
$size_format_display = preg_replace( '/IB$/u', 'iB', strtoupper( $size_format ) );

$rows[ $index ]['Size'] = ceil( $row['Size'] / $divisor ) . ' ' . $size_format_display;
$rows[ $index ]['Size'] = round( $row['Size'] / $divisor ) . ' ' . $size_format_display;
}
}

Expand Down

0 comments on commit cba6e0b

Please sign in to comment.