]> cloud.milkyroute.net Git - dolphin.git/commitdiff
[MountPointObserverCache] Update mounts less frequently
authorKai Uwe Broulik <kde@privat.broulik.de>
Tue, 9 Oct 2018 11:37:10 +0000 (13:37 +0200)
committerKai Uwe Broulik <kde@privat.broulik.de>
Tue, 9 Oct 2018 11:37:10 +0000 (13:37 +0200)
Even on fastest disks, filling up the disk in 10 seconds is unlikely.
Moreover, Plasma's "low disk" warning only polls every minute as well and Dolphin doesn't warn you about the fact that it's full.
Reduces needless wake ups of disks and network.

CCBUG: 398612

Differential Revision: https://phabricator.kde.org/D15507

src/statusbar/mountpointobservercache.cpp

index bcdc0b61cdb1630dd51e133e9ccd9469359bbdbf..b39e26e3a6776581d215da5ae4d6b2f4989b4828 100644 (file)
@@ -78,7 +78,7 @@ MountPointObserver* MountPointObserverCache::observerForUrl(const QUrl& url)
         connect(observer, &MountPointObserver::destroyed, this, &MountPointObserverCache::slotObserverDestroyed);
 
         if (!m_updateTimer->isActive()) {
-            m_updateTimer->start(10000);
+            m_updateTimer->start(60000); // 1 minute
         }
 
         connect(m_updateTimer, &QTimer::timeout, observer, &MountPointObserver::update);