dashboard: append to proper slice (#17266)

pull/17088/merge
Oleg Kovalov 6 years ago committed by Péter Szilágyi
parent 8f4c4fea20
commit 7b1aa64220
  1. 2
      dashboard/dashboard.go

@ -370,7 +370,7 @@ func (db *Dashboard) collectData() {
sys.ProcessCPU = append(sys.ProcessCPU[1:], processCPU) sys.ProcessCPU = append(sys.ProcessCPU[1:], processCPU)
sys.SystemCPU = append(sys.SystemCPU[1:], systemCPU) sys.SystemCPU = append(sys.SystemCPU[1:], systemCPU)
sys.DiskRead = append(sys.DiskRead[1:], diskRead) 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.lock.Unlock()
db.sendToAll(&Message{ db.sendToAll(&Message{

Loading…
Cancel
Save