From 904821d56766f0b907ecb9dfbf6ad20eccd50d05 Mon Sep 17 00:00:00 2001 From: rickcole Date: Mon, 1 Jun 2020 15:01:59 +0800 Subject: [PATCH] =?UTF-8?q?round=E5=B0=8F=E6=95=B0=E4=BD=8D=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E6=94=B9=E6=88=902?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/tpl-builtin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/tpl-builtin.ts b/src/utils/tpl-builtin.ts index db16c8e89..cc63ce44b 100644 --- a/src/utils/tpl-builtin.ts +++ b/src/utils/tpl-builtin.ts @@ -166,7 +166,7 @@ export const filters: { }, duration: input => (input ? formatDuration(input) : input), bytes: input => (input ? prettyBytes(parseFloat(input)) : input), - round: (input, decimals = 0) => { + round: (input, decimals = 2) => { if (isNaN(input)) { return 0; }