Merge pull request #3308 from dpalou/MOBILE-4087

MOBILE-4087 debug: Use 2 decimals in printTablesSummary
main
Noel De Martin 2022-06-02 17:26:12 +02:00 committed by GitHub
commit 7fd6a4bd22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ export class CoreDbProvider {
.replace(':table', tableName) .replace(':table', tableName)
.replace(':statement', statementName) .replace(':statement', statementName)
.replace(':count', String(statementsSummary[dbName][tableName][statementName].count)) .replace(':count', String(statementsSummary[dbName][tableName][statementName].count))
.replace(':duration', statementsSummary[dbName][tableName][statementName].duration + 'ms') .replace(':duration', statementsSummary[dbName][tableName][statementName].duration.toFixed(2) + 'ms')
.replace(':errors', String(statementsSummary[dbName][tableName][statementName].errors)); .replace(':errors', String(statementsSummary[dbName][tableName][statementName].errors));
// eslint-disable-next-line no-console // eslint-disable-next-line no-console