mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-23 19:57:09 +00:00
fix: properly convert CPU from decimal to percentage in NodeSummaryTable
This commit is contained in:
@@ -120,7 +120,7 @@ export const NodeSummaryTable: Component<NodeSummaryTableProps> = (props) => {
|
||||
: (pbs!.status === 'healthy' || pbs!.status === 'online');
|
||||
|
||||
const cpuPercent = () => isPVE
|
||||
? Math.round(node!.cpu || 0)
|
||||
? Math.round((node!.cpu || 0) * 100)
|
||||
: Math.round(pbs!.cpu || 0);
|
||||
|
||||
const memPercent = () => isPVE
|
||||
|
||||
Reference in New Issue
Block a user