Improve up/down display for Monitor widgets
ClosedPublic

Authored by ngraham on Jan 14 2019, 9:58 PM.

Details

Summary

This patch improves the up/down display for the Monitor widgets

Test Plan

Before, no activity:

After, no activity:

Before, some activity:

After, some activity:

All the other ones still look good or are improved:

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ngraham created this revision.Jan 14 2019, 9:58 PM
Restricted Application added a project: Plasma. · View Herald TranscriptJan 14 2019, 9:58 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
ngraham requested review of this revision.Jan 14 2019, 9:58 PM
ngraham edited the test plan for this revision. (Show Details)Jan 14 2019, 9:59 PM
davidedmundson added inline comments.
applets/systemmonitor/common/contents/ui/DoublePlotter.qml
105–109

Can we assume a font has ⬆ characters?

ngraham added inline comments.Jan 14 2019, 10:03 PM
applets/systemmonitor/common/contents/ui/DoublePlotter.qml
105–109

I grabbed this code from plasma-nm, which does the same thing. I haven't heard any complaints about that so I'm going to assume yes?

ngraham edited the summary of this revision. (Show Details)Jan 15 2019, 6:08 PM
ngraham updated this revision to Diff 49552.Jan 15 2019, 6:21 PM

Use the correct units (e.g. kibibytes instead of kilobytes)

ngraham edited the test plan for this revision. (Show Details)Jan 15 2019, 6:22 PM
ngraham updated this revision to Diff 49553.Jan 15 2019, 6:31 PM

It's actually measuring bits

ngraham updated this revision to Diff 49554.Jan 15 2019, 6:37 PM

B -> b (B is bytes, and this measures bits)

Seems like the original change to use bits (D4551) was not super popular and generated bug reports (https://bugs.kde.org/show_bug.cgi?id=383019). If/when this lands, I'll look into making the unit configurable, since I can see the logic for both of them.

I grabbed this code from plasma-nm, which does the same thing.

Ok, cool. Ship that part.


As for the other change. Right now it's in JDEC - you're porting to IEC. Both are valid.
SI would be wrong, but that would be k not K.


If you are going to add an option lets do it properly via a formatSpeed in KCoreAddons::KFormat method.

ngraham updated this revision to Diff 49582.Jan 15 2019, 10:11 PM

Revert unit formatting changes

ngraham edited the summary of this revision. (Show Details)Jan 15 2019, 10:12 PM
ngraham edited the test plan for this revision. (Show Details)
ngraham marked 2 inline comments as done.

Landing based on @davidedmundson's "ship it" for what's left (I think he's asleep right now and I'd like to get this in before we branch). Will submit further patches for other changes.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 15 2019, 10:30 PM
This revision was automatically updated to reflect the committed changes.