Skip to content

Commit

Permalink
Fixed function for fetching table size in kilobytes.
Browse files Browse the repository at this point in the history
  • Loading branch information
nthnn committed Jul 24, 2024
1 parent 234e4d5 commit ea118f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controller/apps.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ public static function getAppStorageUsage($apiKey) {
$data = array();
foreach ($tables as $table) {
$sql = "SELECT table_name,
(data_length + index_length) / 1024 AS 'size'
round((data_length + index_length) / 1024, 2) AS 'size'
FROM information_schema.TABLES
WHERE table_schema = 'qlbase_apps'
AND table_name = '".$table."'";
Expand Down

0 comments on commit ea118f1

Please sign in to comment.