update labels

This commit is contained in:
liangping 2022-08-26 07:04:53 +08:00
parent 7e3b4805b7
commit 92bda3e52f
2 changed files with 2 additions and 5 deletions

View File

@ -36,7 +36,7 @@
"staking": "Staking", "staking": "Staking",
"governance": "Governance", "governance": "Governance",
"summary": "Summary", "summary": "Summary",
"blocks": "Blocks / Txs", "blocks": "Blocks / Transactions",
"blockchains": "Blockchains", "blockchains": "Blockchains",
"uptime": "Uptime", "uptime": "Uptime",
"statesync": "State Sync", "statesync": "State Sync",

View File

@ -320,10 +320,7 @@ export default {
return `${(val / 1000).toFixed()}k` return `${(val / 1000).toFixed()}k`
} }
if (val > 1) { if (val > 1) {
return parseFloat(val.toFixed(2)).toString() return parseFloat(val.toFixed(3)).toString()
}
if (val > 0.001) {
return parseFloat(val.toFixed(4)).toString()
} }
return parseFloat(val.toFixed(6)).toString() return parseFloat(val.toFixed(6)).toString()
}, },