mirror of
https://github.com/siderolabs/talos.git
synced 2025-12-18 07:51:56 +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{
|
||||
// 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(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user