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