mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-18 16:01:18 +01:00
fix: yet another dashboard panic
Fixes #10088 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
This commit is contained in:
parent
6d605fc859
commit
84fcc976f8
@ -179,8 +179,8 @@ func (node *Node) UpdateDiff(old *Node) {
|
|||||||
node.SystemStatDiff = &machine.SystemStat{
|
node.SystemStatDiff = &machine.SystemStat{
|
||||||
// TODO: support other fields
|
// TODO: support other fields
|
||||||
CpuTotal: cpuInfoDiff(old.SystemStat.GetCpuTotal(), node.SystemStat.GetCpuTotal()),
|
CpuTotal: cpuInfoDiff(old.SystemStat.GetCpuTotal(), node.SystemStat.GetCpuTotal()),
|
||||||
ContextSwitches: node.SystemStat.ContextSwitches - old.SystemStat.ContextSwitches,
|
ContextSwitches: node.SystemStat.GetContextSwitches() - old.SystemStat.GetContextSwitches(),
|
||||||
ProcessCreated: node.SystemStat.ProcessCreated - old.SystemStat.ProcessCreated,
|
ProcessCreated: node.SystemStat.GetProcessCreated() - old.SystemStat.GetProcessCreated(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user