feat(executed-at-ms): displaying a float to 2 decimal places

e.g. 58.399999998509884ms -> 58.39ms
This commit is contained in:
JellyBrick
2023-12-02 03:18:30 +09:00
parent ee40d278d4
commit 5f642007ba

View File

@ -111,7 +111,7 @@ export const startPlugin = async <Config extends PluginConfig>(
t('common.console.plugins.executed-at-ms', {
pluginName: id,
contextName: options.ctx,
ms: performance.now() - start,
ms: (performance.now() - start).toFixed(2),
}),
);