Skip to content

Commit 671a4d7

Browse files
authored
Merge pull request woocommerce#16687 from pmgarman/patch-2
Match the database sizes up with the right labels
2 parents 42e19f1 + 05c27f0 commit 671a4d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

includes/admin/views/html-admin-page-status-report.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,19 +346,19 @@
346346
<tr>
347347
<td><?php _e( 'Total Database Size', 'woocommerce' ); ?></td>
348348
<td class="help">&nbsp;</td>
349-
<td><?php printf( '%.2fMB', $database['database_size']['data'] ); ?></td>
349+
<td><?php printf( '%.2fMB', $database['database_size']['data'] + $database['database_size']['index'] ); ?></td>
350350
</tr>
351351

352352
<tr>
353353
<td><?php _e( 'Database Data Size', 'woocommerce' ); ?></td>
354354
<td class="help">&nbsp;</td>
355-
<td><?php printf( '%.2fMB', $database['database_size']['index'] ); ?></td>
355+
<td><?php printf( '%.2fMB', $database['database_size']['data'] ); ?></td>
356356
</tr>
357357

358358
<tr>
359359
<td><?php _e( 'Database Index Size', 'woocommerce' ); ?></td>
360360
<td class="help">&nbsp;</td>
361-
<td><?php printf( '%.2fMB', $database['database_size']['data'] + $database['database_size']['index'] ); ?></td>
361+
<td><?php printf( '%.2fMB', $database['database_size']['index'] ); ?></td>
362362
</tr>
363363

364364
<?php foreach ( $database['database_tables']['woocommerce'] as $table => $table_data ) { ?>

0 commit comments

Comments
 (0)