From 01ba336e650094a60d37cb96b72eaa20f001568c Mon Sep 17 00:00:00 2001 From: michael Date: Sun, 19 Jan 2025 18:37:36 +0100 Subject: [PATCH] fix cpu display --- src/pages/AdminDashboardPage.vue | 4 ++-- src/stores/main-store.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/AdminDashboardPage.vue b/src/pages/AdminDashboardPage.vue index 4613d5d..21bb8c1 100644 --- a/src/pages/AdminDashboardPage.vue +++ b/src/pages/AdminDashboardPage.vue @@ -163,12 +163,12 @@ {{ $t('cpu load') }} - + - {{ store.information.cpu1_5_15[0] }}% / {{ store.information.cpu1_5_15[1] }}% / {{ store.information.cpu1_5_15[2] }}% + {{ store.information.cpu_percent }}% diff --git a/src/stores/main-store.ts b/src/stores/main-store.ts index ee03a85..6991713 100644 --- a/src/stores/main-store.ts +++ b/src/stores/main-store.ts @@ -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,