From 7cfeab1a6b178ee55096c6fec9e9f26f9db70357 Mon Sep 17 00:00:00 2001 From: Layon <144072822+LayonRibeiro@users.noreply.github.com> Date: Mon, 2 Dec 2024 06:01:57 -0300 Subject: [PATCH] UI: Tooltip on the host information card to display the CPU speed in MHz and the memory value in MB (to 3 decimal places) (#9971) Co-authored-by: layon.oliveira --- ui/src/components/view/InfoCard.vue | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/ui/src/components/view/InfoCard.vue b/ui/src/components/view/InfoCard.vue index 98c26bf5565..6b42d68ddc3 100644 --- a/ui/src/components/view/InfoCard.vue +++ b/ui/src/components/view/InfoCard.vue @@ -180,7 +180,14 @@
{{ $t('label.cpu') }}
- {{ resource.cpunumber }} CPU x {{ parseFloat(resource.cpuspeed / 1000.0).toFixed(2) }} Ghz + {{ resource.cpunumber }} CPU x {{ (resource.cpuspeed / 1000.0).toFixed(2) }} GHz + + + + + {{ resource.cputotal }}
@@ -224,7 +231,16 @@
{{ $t('label.memory') }}
- {{ resource.memorytotalgb + ' ' + $t('label.memory') }} + + + {{ resource.memorytotalgb + ' ' + $t('label.memory') }} + + + + +