Adjusted system status widget

This commit is contained in:
Donald Zou 2024-12-07 21:40:43 +08:00
parent b4952dea7b
commit d92e62e40b

View File

@ -45,7 +45,8 @@ const getData = () => {
<div class="progress-bar" :style="{width: `${data?.cpu.cpu_percent}%` }"></div> <div class="progress-bar" :style="{width: `${data?.cpu.cpu_percent}%` }"></div>
</div> </div>
<div class="d-flex mt-2 gap-1"> <div class="d-flex mt-2 gap-1">
<CpuCore v-for="(cpu, count) in data?.cpu.cpu_percent_per_cpu" <CpuCore
v-for="(cpu, count) in data?.cpu.cpu_percent_per_cpu"
:key="count" :key="count"
:align="(count + 1) > Math.round(data?.cpu.cpu_percent_per_cpu.length / 2)" :align="(count + 1) > Math.round(data?.cpu.cpu_percent_per_cpu.length / 2)"
:core_number="count" :percentage="cpu" :core_number="count" :percentage="cpu"