[BACKUP] Store typescript adjustments
This commit is contained in:
parent
813295c857
commit
5a43691d83
11 changed files with 52 additions and 46 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue