Task & TaskStatus: DeepCopy(): actually copy lastUpdate field

otherwise, only changes to activity level would udpate TaskStatus
LastUpdate field

refs #10
This commit is contained in:
Christian Schwarz 2017-12-29 21:42:33 +01:00
parent be7176bee7
commit 61842988b9

View File

@ -222,6 +222,7 @@ func (p *taskProgress) DeepCopy() (out taskProgress) {
p.mtx.RLock()
defer p.mtx.RUnlock()
out.rx, out.tx = p.rx, p.tx
out.lastUpdate = p.lastUpdate
out.logEntries = make([]logger.Entry, len(p.logEntries))
for i := range p.logEntries {
out.logEntries[i] = p.logEntries[i]