dashboard: append to proper slice (#17266)
This commit is contained in:
parent
8f4c4fea20
commit
7b1aa64220
|
@ -370,7 +370,7 @@ func (db *Dashboard) collectData() {
|
|||
sys.ProcessCPU = append(sys.ProcessCPU[1:], processCPU)
|
||||
sys.SystemCPU = append(sys.SystemCPU[1:], systemCPU)
|
||||
sys.DiskRead = append(sys.DiskRead[1:], diskRead)
|
||||
sys.DiskWrite = append(sys.DiskRead[1:], diskWrite)
|
||||
sys.DiskWrite = append(sys.DiskWrite[1:], diskWrite)
|
||||
db.lock.Unlock()
|
||||
|
||||
db.sendToAll(&Message{
|
||||
|
|
Loading…
Reference in New Issue