[BACKUP] Store typescript adjustments

This commit is contained in:
Dunemask 2024-05-14 21:20:22 -06:00
parent 813295c857
commit 5a43691d83
11 changed files with 52 additions and 46 deletions

View file

@ -11,6 +11,7 @@ export default function Overview(props) {
useEffect(() => {
if (systemLoading || !props.clusterMetrics) return;
if (!systemAvailable) return;
setCpu((props.clusterMetrics.cpu / systemAvailable.cpu) * 100);
setMemory((props.clusterMetrics.memory / systemAvailable.memory) * 100);
}, [systemAvailable, props.clusterMetrics]);