mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-24 20:22:53 +00:00
fix: convert CPU from decimal to percentage in PVENodeTable - the component actually being used
This commit is contained in:
@@ -137,7 +137,7 @@ export const PVENodeTable: Component<PVENodeTableProps> = (props) => {
|
||||
const isOnline = () => node.status === 'online';
|
||||
|
||||
// Always show actual node metrics, not calculated from filtered guests
|
||||
const cpuPercent = () => Math.round(node.cpu || 0);
|
||||
const cpuPercent = () => Math.round((node.cpu || 0) * 100);
|
||||
const memPercent = () => node.memory?.total > 0 ? Math.round((node.memory.used / node.memory.total) * 100) : 0;
|
||||
const storagePercent = () => node.disk?.total > 0 ? Math.round((node.disk.used / node.disk.total) * 100) : 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user