Round hardware usage values. Closes https://github.com/owncast/owncast/issues/1815
This commit is contained in:
parent
9f235bcaa5
commit
4ba6822b33
@ -75,7 +75,7 @@ export default function HardwareInfo() {
|
||||
<Col>
|
||||
<StatisticItem
|
||||
title={series[0].name}
|
||||
value={`${currentCPUUsage || 0}`}
|
||||
value={`${Math.round(currentCPUUsage) || 0}`}
|
||||
prefix={<LaptopOutlined style={{ color: series[0].color }} />}
|
||||
color={series[0].color}
|
||||
progress
|
||||
@ -85,7 +85,7 @@ export default function HardwareInfo() {
|
||||
<Col>
|
||||
<StatisticItem
|
||||
title={series[1].name}
|
||||
value={`${currentRamUsage || 0}`}
|
||||
value={`${Math.round(currentRamUsage) || 0}`}
|
||||
prefix={<BulbOutlined style={{ color: series[1].color }} />}
|
||||
color={series[1].color}
|
||||
progress
|
||||
@ -95,7 +95,7 @@ export default function HardwareInfo() {
|
||||
<Col>
|
||||
<StatisticItem
|
||||
title={series[2].name}
|
||||
value={`${currentDiskUsage || 0}`}
|
||||
value={`${Math.round(currentDiskUsage) || 0}`}
|
||||
prefix={<SaveOutlined style={{ color: series[2].color }} />}
|
||||
color={series[2].color}
|
||||
progress
|
||||
|
Loading…
x
Reference in New Issue
Block a user