Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 577834 Details for
Bug 752564
Apper wakes up yumBackend.py every 5 to 10 minutes
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
[patch] Apperd is doing now what it has to do...
apper-0.7.1-wakeup_2.patch (text/plain), 1.94 KB, created by
Martin Kho
on 2012-04-16 20:45:04 UTC
(
hide
)
Description:
[patch] Apperd is doing now what it has to do...
Filename:
MIME Type:
Creator:
Martin Kho
Created:
2012-04-16 20:45:04 UTC
Size:
1.94 KB
patch
obsolete
>diff -Nur apper-0.7.1.orig/apperd/apperd.cpp apper-0.7.1/apperd/apperd.cpp >--- apper-0.7.1.orig/apperd/apperd.cpp 2012-02-21 14:22:05.000000000 +0100 >+++ apper-0.7.1/apperd/apperd.cpp 2012-04-16 22:17:26.918454887 +0200 >@@ -50,6 +50,7 @@ > ApperD::ApperD(QObject *parent, const QList<QVariant> &) : > KDEDModule(parent), > m_actRefreshCacheChecked(false), >+ m_settledRefreshCache(false), > m_showedUpdates(false) > { > m_qtimer = new QTimer(this); >@@ -116,9 +117,14 @@ > > void ApperD::poll() > { >- if (m_lastRefreshCache.isNull()) { >+ if (m_lastRefreshCache.isNull() || !m_settledRefreshCache) { > // This value wasn't set > // convert this to QDateTime >+ // Because it takes a while before a new refresh-cache >+ // value is settled after a call for RefreshAndUpdate, >+ // we wait one cycle (five mitutes) to ask for the new >+ // value. >+ m_settledRefreshCache = true; > m_lastRefreshCache = getTimeSinceRefreshCache(); > } > >@@ -126,7 +132,8 @@ > if (m_refreshCacheInterval != Enum::Never) { > uint maxTime = QDateTime::currentDateTime().toTime_t() - m_refreshCacheInterval; > // If lastRefreshCache is null it means that the cache was never refreshed >- if (m_lastRefreshCache.isNull() || m_lastRefreshCache.toTime_t() < maxTime) { >+ if (m_settledRefreshCache && m_lastRefreshCache.toTime_t() < maxTime) { >+ m_settledRefreshCache = false; > callApperSentinel(QLatin1String("RefreshAndUpdate")); > } > } >diff -Nur apper-0.7.1.orig/apperd/apperd.h apper-0.7.1/apperd/apperd.h >--- apper-0.7.1.orig/apperd/apperd.h 2012-02-21 14:22:05.000000000 +0100 >+++ apper-0.7.1/apperd/apperd.h 2012-04-16 20:24:01.340903150 +0200 >@@ -51,6 +51,7 @@ > bool m_canRefreshCache; > bool m_sentinelIsRunning; > bool m_showedUpdates; >+ bool m_settledRefreshCache; > QDateTime m_lastRefreshCache; > uint m_refreshCacheInterval; > QTimer *m_qtimer;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 752564
:
577327
| 577834 |
578566
|
579163