From 19bbecb5356b75f3d08e5aaf434b55a1a6a82cb8 Mon Sep 17 00:00:00 2001 From: "Florian Aders (EleRas)" Date: Thu, 8 Sep 2011 15:05:18 +0200 Subject: [PATCH] Shorten the megabytes, refs #834 Signed-off-by: Florian Aders (EleRas) --- customer_mysql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/customer_mysql.php b/customer_mysql.php index 63d56c02..1be955a9 100644 --- a/customer_mysql.php +++ b/customer_mysql.php @@ -71,7 +71,7 @@ elseif($page == 'mysqls') { $row = htmlentities_array($row); $mbdata = $db_root->query_first("SELECT SUM( data_length + index_length) / 1024 / 1024 'MB' FROM information_schema.TABLES WHERE table_schema = '" . $db_root->escape($row['databasename']) . "' GROUP BY table_schema ;"); - $row['size'] = $mbdata['MB']; + $row['size'] = number_format($mbdata['MB'], 3, '.', ''); eval("\$mysqls.=\"" . getTemplate("mysql/mysqls_database") . "\";"); $count++; }