mirror of
https://github.com/rclone/rclone.git
synced 2025-08-17 00:51:34 +02:00
accounting: allow up to 100 completed transfers in the accounting list
This fixes the core/transfers rc so it shows items again.
This commit is contained in:
@ -102,6 +102,8 @@ func (tr *Transfer) Done(err error) {
|
||||
}
|
||||
// Signal done with accounting
|
||||
acc.Done()
|
||||
// free the account since we may keep the transfer
|
||||
acc = nil
|
||||
}
|
||||
|
||||
tr.mu.Lock()
|
||||
@ -113,7 +115,7 @@ func (tr *Transfer) Done(err error) {
|
||||
} else {
|
||||
tr.stats.DoneTransferring(tr.remote, err == nil)
|
||||
}
|
||||
tr.stats.RemoveTransfer(tr)
|
||||
tr.stats.PruneTransfers()
|
||||
}
|
||||
|
||||
// Reset allows to switch the Account to another transfer method.
|
||||
|
Reference in New Issue
Block a user