Change default check frequency to every ten hours.

This commit is contained in:
Klaas Freitag 2015-07-16 14:19:02 +02:00
parent fa0faee8ba
commit 4ad9b7d72d
2 changed files with 2 additions and 2 deletions

View File

@ -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() ));

View File

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