From 5f642007ba041075517d743fc287892e7b42e8bc Mon Sep 17 00:00:00 2001 From: JellyBrick Date: Sat, 2 Dec 2023 03:18:30 +0900 Subject: [PATCH] feat(executed-at-ms): displaying a float to 2 decimal places e.g. 58.399999998509884ms -> 58.39ms --- src/utils/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/index.ts b/src/utils/index.ts index 21dcc916..793db05f 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -111,7 +111,7 @@ export const startPlugin = async ( t('common.console.plugins.executed-at-ms', { pluginName: id, contextName: options.ctx, - ms: performance.now() - start, + ms: (performance.now() - start).toFixed(2), }), );