Skip to content

Commit

Permalink
fix: yet another dashboard panic
Browse files Browse the repository at this point in the history
Fixes #10088

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
  • Loading branch information
smira committed Jan 9, 2025
1 parent 6d605fc commit 84fcc97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/pkg/dashboard/apidata/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ func (node *Node) UpdateDiff(old *Node) {
node.SystemStatDiff = &machine.SystemStat{
// TODO: support other fields
CpuTotal: cpuInfoDiff(old.SystemStat.GetCpuTotal(), node.SystemStat.GetCpuTotal()),
ContextSwitches: node.SystemStat.ContextSwitches - old.SystemStat.ContextSwitches,
ProcessCreated: node.SystemStat.ProcessCreated - old.SystemStat.ProcessCreated,
ContextSwitches: node.SystemStat.GetContextSwitches() - old.SystemStat.GetContextSwitches(),
ProcessCreated: node.SystemStat.GetProcessCreated() - old.SystemStat.GetProcessCreated(),
}
}

Expand Down

0 comments on commit 84fcc97

Please sign in to comment.