Skip to content

Commit

Permalink
Correct units for pg logging times
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-north committed Feb 5, 2018
1 parent e593f25 commit eb08d0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db/postgres-db.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class PostgresDB extends SQLDatabase<PostgresStatement> {
logger.info(
[
chalk.cyan(query),
`(${chalk.yellow(`${(end - begin).toPrecision(2)}ms`)})`
`(${chalk.yellow(`${((end - begin) / 1000000).toPrecision(2)}ms`)})`
].join(' ')
);
return r;
Expand All @@ -115,7 +115,7 @@ export default class PostgresDB extends SQLDatabase<PostgresStatement> {
logger.info(
[
chalk.cyan(query),
`(${chalk.yellow(`${(end - begin).toPrecision(2)}ms`)})`
`(${chalk.yellow(`${((end - begin) / 1000000).toPrecision(2)}ms`)})`
].join(' ')
);
return rows;
Expand Down

0 comments on commit eb08d0d

Please sign in to comment.