From 689cbea504faf25bf3f657209e8c1d2d6c2e1984 Mon Sep 17 00:00:00 2001 From: Keith Date: Sat, 10 Sep 2022 14:51:41 +0800 Subject: [PATCH] fix: fix decimal of tps --- pages/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/index.tsx b/pages/index.tsx index bce7f3363..9fed39de4 100644 --- a/pages/index.tsx +++ b/pages/index.tsx @@ -149,7 +149,7 @@ const Statistic: React.FC = ({ setStats(start => ({ blockHeight: calclateCurValue(progress, +blockCount - 1, +start.blockHeight), txCount: calclateCurValue(progress, +txCount, +start.txCount), - tps: calclateCurValue(progress, +tps, +start.tps), + tps: calclateCurValue(progress, +tps * 10, +start.tps * 10) / 10, accountCount: calclateCurValue(progress, +accountCount, +start.accountCount), averageBlockTime: calclateCurValue(progress, +averageBlockTime, start.averageBlockTime), }))