[Pkg-owncloud-commits] [owncloud-client] 24/70: only increment the progressbar for files when the file has been fully transfered

Sandro Knauß hefee-guest at moszumanska.debian.org
Sat May 17 20:01:26 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit f034bcb9ae07b0cd391bdf804c49e09b7230b0bd
Author: Olivier Goffart <ogoffart at woboq.com>
Date:   Wed May 7 12:34:55 2014 +0200

    only increment the progressbar for files when the file has been fully transfered
---
 src/mirall/accountsettings.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mirall/accountsettings.cpp b/src/mirall/accountsettings.cpp
index e18439a..78e598a 100644
--- a/src/mirall/accountsettings.cpp
+++ b/src/mirall/accountsettings.cpp
@@ -635,7 +635,7 @@ void AccountSettings::slotSetProgress(const QString& folder, const Progress::Inf
     int overallPercent = 0;
     if( progress._totalFileCount > 0 ) {
         // Add one 'byte' for each files so the percentage is moving when deleting or renaming files
-        overallPercent = qRound(double(completedSize + currentFile)/double(progress._totalSize + progress._totalFileCount) * 100.0);
+        overallPercent = qRound(double(completedSize + progress._completedFileCount)/double(progress._totalSize + progress._totalFileCount) * 100.0);
     }
     item->setData( overallPercent, FolderStatusDelegate::SyncProgressOverallPercent);
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list