restore fashion mail card and real monitor stats#1586
Conversation
There was a problem hiding this comment.
Sorry @shule1987, your pull request is larger than the review limit of 150000 diff characters
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: shule1987 The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
TAG Bot TAG: 2.0.38 |
|
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
755908e to
dd1f2e2
Compare
|
recheck cla |
d456fa5 to
1df5def
Compare
Keep the fashion mode mail plugin visible without waking the mail client when no mailbox account is configured, and read CPU and memory usage from /proc so the monitor plugin reports real values instead of stale fallback data. This revision also trims the PR back to dock-focused fashion mode changes so the GitHub diff stays below the cppcheck action limit, and refreshes the REUSE/SPDX metadata required by the current CI checks.
1df5def to
14c6d60
Compare
deepin pr auto review |
|
TAG Bot New tag: 2.0.40 |
|
TAG Bot New tag: 2.0.41 |
This PR fixes two regressions in the fashion dock left
plugins:
was configured.
usage, and memory could stay at a fake
7%value.Background
The original requirement for mail was only to avoid frequently
waking the mail service when no account is configured. During
later polish, that behavior was tightened too much and turned
into:
For the monitor card, the UI was falling back to
org.deepin.SystemMonitorDaemonvalues in cases where/procdata should have been used directly. In practice, the daemon
could return stale placeholder values, and
/proc/meminfoparsing also failed because
QFile::atEnd()is unreliable forprocfs pseudo files.
Changes
Mail card
even when no mail account is configured
service during background refresh
mail client directly
because no account is configured
Monitor stats
/procfor CPU andmemory usage
SystemMonitorDaemonwhen direct readsfail
/proc/meminfoparsing by reading lines untilreadLine()is empty instead of relying onatEnd()MemAvailableis missingguest/guest_nicefrom total time to avoid double counting