mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-16 19:04:43 +03:00
Upload Chunking: Fix progress DB values
This commit is contained in:
parent
6d94acee8f
commit
1543899795
1 changed files with 3 additions and 2 deletions
|
@ -442,11 +442,12 @@ void PropagateUploadFileQNAM::slotPutFinished()
|
||||||
|
|
||||||
SyncJournalDb::UploadInfo pi;
|
SyncJournalDb::UploadInfo pi;
|
||||||
pi._valid = true;
|
pi._valid = true;
|
||||||
auto currentChunk = _chunkCount;
|
auto currentChunk = job->_chunk;
|
||||||
foreach (auto *job, _jobs) {
|
foreach (auto *job, _jobs) {
|
||||||
|
// Take the minimum finished one
|
||||||
currentChunk = qMin(currentChunk, job->_chunk);
|
currentChunk = qMin(currentChunk, job->_chunk);
|
||||||
}
|
}
|
||||||
pi._chunk = (currentChunk + _startChunk) % _chunkCount; // next chunk to start with
|
pi._chunk = (currentChunk + _startChunk + 1) % _chunkCount ; // next chunk to start with
|
||||||
pi._transferid = _transferId;
|
pi._transferid = _transferId;
|
||||||
pi._modtime = Utility::qDateTimeFromTime_t(_item._modtime);
|
pi._modtime = Utility::qDateTimeFromTime_t(_item._modtime);
|
||||||
_propagator->_journal->setUploadInfo(_item._file, pi);
|
_propagator->_journal->setUploadInfo(_item._file, pi);
|
||||||
|
|
Loading…
Reference in a new issue