Skip to content

Commit

Permalink
fix cpu display
Browse files Browse the repository at this point in the history
  • Loading branch information
mgineer85 committed Jan 19, 2025
1 parent f3317e9 commit 01ba336
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/pages/AdminDashboardPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@
<q-item-section>
<q-item-label caption>{{ $t('cpu load') }} </q-item-label>
<q-item-label>
<q-linear-progress size="lg" :value="(store.information.cpu1_5_15[0] ?? 0) / 100"> </q-linear-progress>
<q-linear-progress size="lg" :value="store.information.cpu_percent / 100"> </q-linear-progress>
</q-item-label>

<q-item-label>
<!-- eslint-disable-next-line @intlify/vue-i18n/no-raw-text-->
{{ store.information.cpu1_5_15[0] }}% / {{ store.information.cpu1_5_15[1] }}% / {{ store.information.cpu1_5_15[2] }}%
{{ store.information.cpu_percent }}%
</q-item-label>
</q-item-section>
</q-item>
Expand Down
2 changes: 1 addition & 1 deletion src/stores/main-store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const useMainStore = defineStore('main-store', {

information: {
/* system */
cpu1_5_15: [0, 0, 0] as number[],
cpu_percent: 0,
memory: {
total: 0,
available: 0,
Expand Down

0 comments on commit 01ba336

Please sign in to comment.