Skip to content

Commit ed8ddf1

Browse files
author
layon.oliveira
committed
Display the tooltip with the exact value of the host's CPU speed expressed in MHz
1 parent 8a2c0f3 commit ed8ddf1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ui/src/components/view/InfoCard.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,14 @@
186186
<div class="resource-detail-item__label">{{ $t('label.cpu') }}</div>
187187
<div class="resource-detail-item__details">
188188
<appstore-outlined />
189-
<span v-if="'cpunumber' in resource && 'cpuspeed' in resource">{{ resource.cpunumber }} CPU x {{ parseFloat(resource.cpuspeed / 1000.0).toFixed(2) }} Ghz</span>
189+
<span v-if="'cpunumber' in resource && 'cpuspeed' in resource">{{ resource.cpunumber }} CPU x {{ (resource.cpuspeed / 1000.0).toFixed(2) }} GHz
190+
<a-tooltip placement="top">
191+
<template #title>
192+
{{ resource.cpuspeed }} MHz
193+
</template>
194+
<QuestionCircleOutlined />
195+
</a-tooltip>
196+
</span>
190197
<span v-else>{{ resource.cputotal }}</span>
191198
<a-tag v-if="resource.arch" style="margin-left: 10px">
192199
{{ resource.arch }}

0 commit comments

Comments
 (0)