fix: network speed format
This commit is contained in:
parent
3c33695b9d
commit
11d82911ba
1 changed files with 4 additions and 3 deletions
|
|
@ -32,7 +32,7 @@ const Overview = ({ data, onActionSuccess }) => {
|
||||||
<Label1 className={classes.label3}>Ping</Label1>
|
<Label1 className={classes.label3}>Ping</Label1>
|
||||||
<P noMargin>
|
<P noMargin>
|
||||||
{data.responseTime
|
{data.responseTime
|
||||||
? new BigNumber(data.responseTime).toFixed(3).toString() + ' ms'
|
? new BigNumber(data.responseTime).toFixed(3).toString() + ' ms'
|
||||||
: 'unavailable'}
|
: 'unavailable'}
|
||||||
</P>
|
</P>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -50,8 +50,9 @@ const Overview = ({ data, onActionSuccess }) => {
|
||||||
<Label1 className={classes.label3}>Network speed</Label1>
|
<Label1 className={classes.label3}>Network speed</Label1>
|
||||||
<P noMargin>
|
<P noMargin>
|
||||||
{data.downloadSpeed
|
{data.downloadSpeed
|
||||||
? new BigNumber(data.downloadSpeed).toFixed(4).toString() +
|
? new BigNumber(data.downloadSpeed)
|
||||||
' MB/s'
|
.toFixed(data.downloadSpeed < 10 ? 2 : 0)
|
||||||
|
.toString() + ' MB/s'
|
||||||
: 'unavailable'}
|
: 'unavailable'}
|
||||||
</P>
|
</P>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue