|
|
@@ -389,4 +389,13 @@ class core
|
|
|
return round(($val / pow(1024, -$diff)), 2) . $type_wanted;
|
|
|
return round(($val), 2) . $type_wanted;
|
|
|
}
|
|
|
+
|
|
|
+ public static function getSizeDataBase(){
|
|
|
+ db::query("SELECT
|
|
|
+ table_schema AS nameDB,
|
|
|
+ ROUND(SUM( data_length + index_length ) / 1024 / 1024, 2) AS moDB
|
|
|
+ FROM information_schema.TABLES
|
|
|
+ WHERE TABLE_SCHEMA = '".DB_NAME."'");
|
|
|
+ return db::single();
|
|
|
+ }
|
|
|
}
|