mirror of https://github.com/Fabio286/antares.git
fix: wrong schema and table size on explore bar
This commit is contained in:
parent
ad713fcf35
commit
4479a9600b
|
@ -286,7 +286,7 @@ export class MySQLClient extends AntaresCore {
|
|||
break;
|
||||
}
|
||||
|
||||
const tableSize = table.Data_length + table.Index_length;
|
||||
const tableSize = Number(table.Data_length) + Number(table.Index_length);
|
||||
schemaSize += tableSize;
|
||||
|
||||
return {
|
||||
|
|
|
@ -238,7 +238,7 @@ export class PostgreSQLClient extends AntaresCore {
|
|||
if (schemas.has(db.database)) {
|
||||
// TABLES
|
||||
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;
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue