From 0f2aecdf597a8ecf3b2df36e1b9eac1b8f218ee7 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Mon, 29 May 2023 15:10:14 -0700 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=92=84=20server=20metrics=20widg?= =?UTF-8?q?ets?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/client/src/widgets/server-metric/cpu.vue | 2 +- .../src/widgets/server-metric/meilisearch.vue | 14 +++++++------- packages/client/src/widgets/server-metric/mem.vue | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/client/src/widgets/server-metric/cpu.vue b/packages/client/src/widgets/server-metric/cpu.vue index 5aa4d2698..563fe3b0f 100644 --- a/packages/client/src/widgets/server-metric/cpu.vue +++ b/packages/client/src/widgets/server-metric/cpu.vue @@ -2,7 +2,7 @@
-

CPU

+

CPU

{{ meta.cpu.cores }} Logical cores

{{ meta.cpu.model }}

diff --git a/packages/client/src/widgets/server-metric/meilisearch.vue b/packages/client/src/widgets/server-metric/meilisearch.vue index f8668c61b..78032cb6e 100644 --- a/packages/client/src/widgets/server-metric/meilisearch.vue +++ b/packages/client/src/widgets/server-metric/meilisearch.vue @@ -8,8 +8,8 @@

MeiliSearch

{{ i18n.ts._widgets.meiliStatus }}: {{ available }}

-

{{ i18n.ts._widgets.meiliSize }}: {{ bytes(total_size, 2) }}

-

{{ i18n.ts._widgets.meiliIndexCount }}: {{ index_count }}

+

{{ i18n.ts._widgets.meiliSize }}: {{ bytes(totalSize, 1) }}

+

{{ i18n.ts._widgets.meiliIndexCount }}: {{ indexCount }}


@@ -29,15 +29,15 @@ const props = defineProps<{ let progress: number = $ref(0); let serverStats = $ref(null); -let total_size: number = $ref(0); -let index_count: number = $ref(0); +let totalSize: number = $ref(0); +let indexCount: number = $ref(0); let available: string = $ref("unavailable"); function onStats(stats) { - total_size = stats.meilisearch.size; - index_count = stats.meilisearch.indexed_count; + totalSize = stats.meilisearch.size; + indexCount = stats.meilisearch.indexed_count; available = stats.meilisearch.health; - progress = index_count / serverStats.notesCount; + progress = indexCount / serverStats.notesCount; } onMounted(() => { diff --git a/packages/client/src/widgets/server-metric/mem.vue b/packages/client/src/widgets/server-metric/mem.vue index e3ef00d5e..80cad4a82 100644 --- a/packages/client/src/widgets/server-metric/mem.vue +++ b/packages/client/src/widgets/server-metric/mem.vue @@ -2,7 +2,7 @@
-

RAM

+

RAM

Total: {{ bytes(total, 1) }}

Used: {{ bytes(used, 1) }}

Free: {{ bytes(free, 1) }}