mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-02-18 00:17:39 +01:00
fix(ui): add CPU tooltip to Proxmox Overview. Related to #816
This commit is contained in:
@@ -581,23 +581,13 @@ export const NodeSummaryTable: Component<NodeSummaryTableProps> = (props) => {
|
||||
</div>
|
||||
</Show>
|
||||
<div class="hidden md:block h-4">
|
||||
<Show when={isPVEItem} fallback={
|
||||
<ResponsiveMetricCell
|
||||
value={cpuPercentValue}
|
||||
type="cpu"
|
||||
resourceId={metricsKey}
|
||||
isRunning={online}
|
||||
showMobile={false}
|
||||
/>
|
||||
}>
|
||||
<EnhancedCPUBar
|
||||
usage={cpuPercentValue}
|
||||
loadAverage={node!.loadAverage?.[0]}
|
||||
cores={node!.cpuInfo?.cores}
|
||||
model={node!.cpuInfo?.model}
|
||||
resourceId={metricsKey}
|
||||
/>
|
||||
</Show>
|
||||
<EnhancedCPUBar
|
||||
usage={cpuPercentValue}
|
||||
loadAverage={isPVEItem ? node!.loadAverage?.[0] : undefined}
|
||||
cores={isPVEItem ? node!.cpuInfo?.cores : undefined}
|
||||
model={isPVEItem ? node!.cpuInfo?.model : undefined}
|
||||
resourceId={metricsKey}
|
||||
/>
|
||||
</div>
|
||||
</td>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user