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) }}