Skip to content

Commit

Permalink
fix: fix decimal of tps
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Sep 10, 2022
1 parent 39e0ec4 commit 689cbea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const Statistic: React.FC<State['statistic'] & { isLoading: boolean }> = ({
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),
}))
Expand Down

0 comments on commit 689cbea

Please sign in to comment.