mirror of
				https://github.com/Fabio286/antares.git
				synced 2025-06-05 21:59:22 +02:00 
			
		
		
		
	fix: wrong schema and table size on explore bar
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user