| Summary: | KMail wakes up every second | ||
|---|---|---|---|
| Product: | [Unmaintained] kmail | Reporter: | Alan Jenkins <alan.christopher.jenkins> |
| Component: | general | Assignee: | kdepim bugs <pim-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | bjoern |
| Priority: | NOR | ||
| Version First Reported In: | 1.9.6 | ||
| Target Milestone: | --- | ||
| Platform: | Unlisted Binaries | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
Can you just check whether this line is still present in current kmail? Should be an easy way to redruce the amount of wake ups Hmm, not sure where this line would have been moved to... I don't think it's there anymore. <http://source.debian.net/source/search?q=1000&defs=&refs=QTimer&path=kmail&hist=>. I don't use kmail anymore. But I tested it with a single message in the local drafts folder, and it showed 0.3 wakeups/s. So I'm fairly confident this specific annoyance is gone. Let's close the bug. |
Version: 1.9.6 (using KDE KDE 3.5.6) Installed from: Unspecified Linux OS: Linux KMHeaders:2049: void KMHeaders::resetCurrentTime() { mDate.reset(); QTimer::singleShot( 1000, this, SLOT( resetCurrentTime() ) ); } I'm guessing mDate.reset() is responsible for updating "Yesterday"/"Thursday"/"2007-10-8" in the messages list. Proposed fix: change it to only wake up once every minute. Align the timer to schedule it for the exact time the minute changes. The alignment is what's stopping me posting a patch immediately, but I'm sure it won't take me long to find the code for "how long until the next minute rolls over?".