Skip to content

Commit

Permalink
fix: dashboard crash on CPU data
Browse files Browse the repository at this point in the history
This was introduced in 1.9 cycle.

Fixes #9998

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit fb36753)
  • Loading branch information
smira committed Dec 26, 2024
1 parent f84ba2a commit 3f87286
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions internal/pkg/dashboard/components/header.go
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,6 @@ func (widget *Header) updateNodeAPIData(node string, data *apidata.Node) {

if numCPUs > 0 {
nodeData.cpuFreq = fmt.Sprintf("%dx%s", numCPUs, widget.humanizeCPUFrequency(data.CPUsInfo.GetCpuInfo()[0].GetCpuMhz()))
} else {
nodeData.cpuFreq = widget.humanizeCPUFrequency(data.CPUsInfo.GetCpuInfo()[0].GetCpuMhz())
}
}

Expand Down

0 comments on commit 3f87286

Please sign in to comment.