diff --git a/views/admin/database/index.html b/views/admin/database/index.html
index 8f8478a..6aede9c 100644
--- a/views/admin/database/index.html
+++ b/views/admin/database/index.html
@@ -24,14 +24,22 @@
{$table['Name']} |
{$table['Engine']} |
{$table['Collation']} |
- {$table['Index_length']} |
- {$table['Data_length']} |
+ {if condition="$table['Index_length'] < 1024 * 1024"}
+ {:round($table['Index_length']/1024, 2)} KB |
+ {else/}
+ {round($table['Index_length']/1024/1024, 2)} MB |
+ {/if}
+ {if condition="$table['Data_length'] < 1024 * 1024"}
+ {:round($table['Data_length']/1024, 2)} KB |
+ {else/}
+ {round($table['Data_length']/1024/1024, 2)} MB |
+ {/if}
{$table['Rows']} |
{$table['Comment']} |
{$table['Create_time']} |
-
-
+
+
|
{/foreach}