fix: wrong schema and table size on explore bar

This commit is contained in:
Fabio Di Stasio 2022-02-28 14:19:07 +01:00
parent ad713fcf35
commit 4479a9600b
2 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ export class MySQLClient extends AntaresCore {
break; break;
} }
const tableSize = table.Data_length + table.Index_length; const tableSize = Number(table.Data_length) + Number(table.Index_length);
schemaSize += tableSize; schemaSize += tableSize;
return { return {

View File

@ -238,7 +238,7 @@ export class PostgreSQLClient extends AntaresCore {
if (schemas.has(db.database)) { if (schemas.has(db.database)) {
// TABLES // TABLES
const remappedTables = tablesArr.filter(table => table.Db === db.database).map(table => { const remappedTables = tablesArr.filter(table => table.Db === db.database).map(table => {
const tableSize = +table.data_length + table.index_length; const tableSize = Number(table.data_length) + Number(table.index_length);
schemaSize += tableSize; schemaSize += tableSize;
return { return {