From 7358989297e1e7e0ae4a269ee52b565cf6d49e5f Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Tue, 21 Nov 2023 15:31:49 +0100 Subject: [PATCH] Fix: Diagnostic status message in index.html --- src/aleph/vm/orchestrator/views/static/helpers.js | 10 +++++----- src/aleph/vm/orchestrator/views/templates/index.html | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/aleph/vm/orchestrator/views/static/helpers.js b/src/aleph/vm/orchestrator/views/static/helpers.js index 7648f4460..aced57b66 100644 --- a/src/aleph/vm/orchestrator/views/static/helpers.js +++ b/src/aleph/vm/orchestrator/views/static/helpers.js @@ -5,15 +5,15 @@ async function fetchApiStatus () { details: [] } if(q.ok){ - res.status = "working properly ✅"; + res.status = " is working properly ✅"; } else { switch(Number(q.status)){ case 503: - res.status = "not working properly ❌"; + res.status = " is not working properly ❌"; res.details = await q.json(); case 500: - res.status = "❌ Failed"; + res.status = " ❌ Failed"; default: res.status = q.status; } @@ -67,7 +67,7 @@ async function* fetchLatestMetrics (hostname, fromDate) { if(!countRes?.posts[0]?.content?.metrics?.crn?.find(node => node.url === hostname)) throw new Error('Hostname not found in metrics'); - + const totalPages = Math.ceil(totalDataPoints / qp.pagination); let currentPage = 0; @@ -92,4 +92,4 @@ async function* fetchLatestMetrics (hostname, fromDate) { retries++; } } -} \ No newline at end of file +} diff --git a/src/aleph/vm/orchestrator/views/templates/index.html b/src/aleph/vm/orchestrator/views/templates/index.html index 86035473b..6e1cc5a0e 100644 --- a/src/aleph/vm/orchestrator/views/templates/index.html +++ b/src/aleph/vm/orchestrator/views/templates/index.html @@ -45,7 +45,7 @@

Multiaddr

Diagnostic

- Virtualization is + Virtualization  ...  @@ -116,7 +116,7 @@

Version

- \ No newline at end of file +