dashboard: append to proper slice (#17266)

This commit is contained in:
Oleg Kovalov 2018-07-30 11:48:16 +02:00 committed by Péter Szilágyi
parent 8f4c4fea20
commit 7b1aa64220

View File

@ -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{