NetStatus App tooltip display units
Attila Kinali <[email protected]> Sat, 13 Feb 2016 13:38:23 +0100
| Newsgroups | gmane.comp.window-managers.icewm.devel |
|---|---|
| Organization | NERV |
| Message-ID | <[email protected]> |
Moin,
One of the small things that I'd like to change with icewm for a long time
was that the tooltip of the NetStatus app showed the transfer rates in
bits per second. When the app was written, it was the right choice as
data rates were usually declared in bits/s. But now, 16 years later, things
have slightly changed and people denote transfer rates in bytes per second.
The "fix" is fairly trivial (see below), but I think this should be
configurable. But I can't seem to figure out how to access a config option.
Attila Kinali
--- src/apppstatus.cc.orig 2016-02-13 13:33:29.710181216 +0100
+++ src/apppstatus.cc 2016-02-13 13:36:15.176945479 +0100
@@ -148,7 +148,7 @@
if (isUp()) {
char const * const sizeUnits[] = { "B", "KiB", "MiB", "GiB", "TiB", NULL };
- char const * const rateUnits[] = { "bps", "kps", "mps", NULL };
+ char const * const rateUnits[] = { "B/s", "kB/s", "MB/s", NULL };
long const t(time(NULL) - start_time);
@@ -179,11 +179,6 @@
cai /= taskBarNetSamples;
cao /= taskBarNetSamples;
- ci *= 8;
- co *= 8;
- cai *= 8;
- cao *= 8;
-
const char * const viUnit(niceUnit(vi, sizeUnits));
const char * const voUnit(niceUnit(vo, sizeUnits));
const char * const ciUnit(niceUnit(ci, rateUnits));
--
Reading can seriously damage your ignorance.
-- unknown
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140