Blob Blame History Raw
From 80ee30993a9b656b1fc23e9abec98f93deabf448 Mon Sep 17 00:00:00 2001
From: Rex Dieter <rdieter@math.unl.edu>
Date: Mon, 29 Apr 2013 08:43:42 -0500
Subject: [PATCH] cache update debuging

---
 apperd/ApperdThread.cpp | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/apperd/ApperdThread.cpp b/apperd/ApperdThread.cpp
index cce7d2d..cd49de8 100644
--- a/apperd/ApperdThread.cpp
+++ b/apperd/ApperdThread.cpp
@@ -163,6 +163,9 @@ void ApperdThread::poll()
         m_lastRefreshCache = getTimeSinceRefreshCache();
     }
 
+    kDebug() << "CHECKING FOR UPDATES (poll)";
+    kDebug() << "interval:" << m_configs[CFG_INTERVAL].value<uint>();
+
     // If check for updates is active
     if (m_configs[CFG_INTERVAL].value<uint>() != Enum::Never) {
         // Find out how many seconds passed since last refresh cache
@@ -254,6 +257,12 @@ void ApperdThread::setProxy()
 
 void ApperdThread::updatesChanged()
 {
+    kDebug() << "UPDATES CHANGED";
+    kDebug() << "interval:" << m_configs[CFG_INTERVAL].value<uint>();
+
+    if (m_configs[CFG_INTERVAL].value<uint>() == Enum::Never)
+        return;
+
     // update the last time the cache was refreshed
     QDateTime lastCacheRefresh;
     lastCacheRefresh = getTimeSinceRefreshCache();
-- 
1.8.1.4