From 6eddc1125316bb0d77a7c71cfc4674cd99c6e296 Mon Sep 17 00:00:00 2001 From: kevin Date: Fri, 13 Mar 2026 13:40:30 +0100 Subject: [PATCH] fix: arch-03 worker system metric --- components/Speed-test.vue | 2 +- components/SystemMetricsChart.vue | 162 ++++++++++++------------- server/api/download.get.ts | 27 +---- server/api/speedtest.get.ts | 24 ++++ server/plugins/metrics-worker.ts | 195 ++++++++++++++++++++++++++++++ 5 files changed, 302 insertions(+), 108 deletions(-) create mode 100644 server/api/speedtest.get.ts create mode 100644 server/plugins/metrics-worker.ts diff --git a/components/Speed-test.vue b/components/Speed-test.vue index 8e0501b..c0243d4 100644 --- a/components/Speed-test.vue +++ b/components/Speed-test.vue @@ -62,7 +62,7 @@ const metrics = computed(() => [ async function testDownload() { const start = performance.now() - const res = await apiRequest('/api/download') + const res = await apiRequest('/api/speedtest') if (!res.ok) { throw new Error(`HTTP ${res.status}`) } diff --git a/components/SystemMetricsChart.vue b/components/SystemMetricsChart.vue index 93a584c..f4e30fe 100644 --- a/components/SystemMetricsChart.vue +++ b/components/SystemMetricsChart.vue @@ -3,27 +3,22 @@

Historique systeme

-

CPU, RAM et debit reseau avec cache journalier local

+

CPU et RAM avec cache journalier local

-
-
@@ -48,19 +43,11 @@
-