[Pkg-owncloud-commits] [owncloud-client] 336/498: Change default check frequency to every ten hours.

Sandro Knauß hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:04 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 4ad9b7d72d0a2ada0ec8bdf006993be9e533ca82
Author: Klaas Freitag <freitag at owncloud.com>
Date:   Thu Jul 16 14:19:02 2015 +0200

    Change default check frequency to every ten hours.
---
 src/gui/application.cpp    | 2 +-
 src/libsync/configfile.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gui/application.cpp b/src/gui/application.cpp
index 0ffca98..c6b0371 100644
--- a/src/gui/application.cpp
+++ b/src/gui/application.cpp
@@ -178,7 +178,7 @@ Application::Application(int &argc, char **argv) :
     QTimer::singleShot( 0, this, SLOT( slotCheckConnection() ));
 
     // Update checks
-    _updaterTimer.setInterval(cfg.updateCheckInterval()); // check every two hours
+    _updaterTimer.setInterval(cfg.updateCheckInterval()); // check every couple of hours as defined in config
 
     connect(&_updaterTimer, SIGNAL(timeout()), this, SLOT(slotStartUpdateDetector()));
     QTimer::singleShot( 3000, this, SLOT( slotStartUpdateDetector() ));
diff --git a/src/libsync/configfile.cpp b/src/libsync/configfile.cpp
index 5cf4e05..f30d584 100644
--- a/src/libsync/configfile.cpp
+++ b/src/libsync/configfile.cpp
@@ -389,7 +389,7 @@ bool ConfigFile::updateCheckInterval( const QString& connection ) const
     QSettings settings(configFile(), QSettings::IniFormat);
     settings.beginGroup( con );
 
-    quint64 defaultInterval = 1000*120*60;
+    quint64 defaultInterval = 1000*60*60*10; // ten hours
     quint64 interval = settings.value( QLatin1String(updateCheckIntervalC), defaultInterval ).toULongLong();
 
     quint64 minInterval = 1000*60*5;

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