[Pkg-owncloud-commits] [owncloud-client] 442/498: Notify of big folders that are greater than or equal to the limit

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:16 UTC 2015


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 821672755366d7dd5cd5cd2b5bbac865460cae7e
Author: Phil Davis <phil.davis at inf.org>
Date:   Tue Aug 4 19:28:23 2015 +0545

    Notify of big folders that are greater than or equal to the limit
    
    This should allow for the case when a user has set the limit to 0 and a new empty folder appears on the server. The folder will have size 0 (no files in it). Doing the >= test here will mean that the user will be prompted about the new folder, which I think is the behaviour they would expect.
    The side-effect of this change is that if the user has a limit of, for example, 10,000,000 and a new folder comes along with exactly 10,000,000 of content then they will now be prompted about it. Before the change such a new folder would have been auto-synced without prompting the user. I do not think this is a big deal - I cannot believe that users will be counting exact bytes for this limit, they are just setting a rough number of MB at the UI.
    Should fix https://github.com/owncloud/client/issues/3542
---
 src/libsync/discoveryphase.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libsync/discoveryphase.cpp b/src/libsync/discoveryphase.cpp
index e151955..9f85978 100644
--- a/src/libsync/discoveryphase.cpp
+++ b/src/libsync/discoveryphase.cpp
@@ -84,7 +84,7 @@ bool DiscoveryJob::checkSelectiveSyncNewFolder(const QString& path)
     }
 
     auto limit = _newBigFolderSizeLimit;
-    if (result > limit) {
+    if (result >= limit) {
         // we tell the UI there is a new folder
         emit newBigFolder(path);
         return true;

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