From 5a365dbc068f2a8cdfa9813c39cc84bb30e15637 Mon Sep 17 00:00:00 2001 From: Dante Niewenhuis Date: Fri, 25 Oct 2024 13:32:41 +0200 Subject: Rewrote the FlowEngine (#256) * Removed unused components. Updated tests. Improved checkpointing model Improved model, started with SimPowerSource implemented FailureModels and Checkpointing First working version midway commit first update All simulation are now run with a single CPU and single MemoryUnit. multi CPUs are combined into one. This is for performance and explainability. * fixed merge conflicts * Updated M3SA paths. * Fixed small typo --- .../src/components/topologies/sidebar/machine/UnitTabsComponent.js | 4 ++-- .../src/components/topologies/sidebar/rack/MachineComponent.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'opendc-web/opendc-web-ui/src') diff --git a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/machine/UnitTabsComponent.js b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/machine/UnitTabsComponent.js index b800e9d4..4032d607 100644 --- a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/machine/UnitTabsComponent.js +++ b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/machine/UnitTabsComponent.js @@ -5,11 +5,11 @@ import UnitAddContainer from './UnitAddContainer' import UnitListContainer from './UnitListContainer' function UnitTabsComponent({ machineId }) { - const [activeTab, setActiveTab] = useState('cpu-units') + const [activeTab, setActiveTab] = useState('cpuModel-units') return ( setActiveTab(tab)}> - CPU}> + CPU}> diff --git a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js index 18c3db3c..b0a96a9f 100644 --- a/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js +++ b/opendc-web/opendc-web-ui/src/components/topologies/sidebar/rack/MachineComponent.js @@ -19,7 +19,7 @@ function MachineComponent({ machine, onClick }) { return ( onClick()}> - {machine.cpus.length > 0 ? : undefined} + {machine.cpus.length > 0 ? : undefined} {machine.gpus.length > 0 ? : undefined} {machine.memories.length > 0 ? : undefined} {machine.storages.length > 0 ? : undefined} -- cgit v1.2.3