diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2014-01-25 00:07:31 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2014-01-25 00:07:31 +0000 |
commit | b7fe9575ab40a3bcde643a8ae8750ca6fd2aaad7 (patch) | |
tree | d220eddc3489f44845e9855e901290f7f712a626 /info_scr.c | |
parent | bea11309641a93ea51622fc85331d3960011afe4 (diff) | |
parent | d7ca0c3e555ef0b5250873ddce48ccf2326b017a (diff) | |
download | wavemon-b7fe9575ab40a3bcde643a8ae8750ca6fd2aaad7.tar.gz |
Merge tag 'upstream/0.7.6'
Upstream version 0.7.6
Diffstat (limited to '')
-rw-r--r-- | info_scr.c | 16 |
1 files changed, 9 insertions, 7 deletions
@@ -75,8 +75,10 @@ static void display_levels(void) qual = ewma(qual, cur.stat.qual.qual, conf.meter_decay / 100.0); mvwaddstr(w_levels, line++, 1, "link quality: "); - sprintf(tmp, "%0.f/%d ", qual, cur.range.max_qual.qual); + sprintf(tmp, "%0.f%% ", (1e2 * qual)/cur.range.max_qual.qual); waddstr_b(w_levels, tmp); + sprintf(tmp, "(%0.f/%d) ", qual, cur.range.max_qual.qual); + waddstr(w_levels, tmp); waddbar(w_levels, line++, qual, 0, cur.range.max_qual.qual, lvlscale, true); @@ -151,20 +153,20 @@ static void display_stats(void) waddstr_b(w_stats, tmp); waddstr(w_stats, ", invalid: "); - sprintf(tmp, "%'u", cur.stat.discard.nwid); + sprintf(tmp, "%u", cur.stat.discard.nwid); waddstr_b(w_stats, tmp); waddstr(w_stats, " nwid, "); - sprintf(tmp, "%'u", cur.stat.discard.code); + sprintf(tmp, "%u", cur.stat.discard.code); waddstr_b(w_stats, tmp); waddstr(w_stats, " crypt, "); - sprintf(tmp, "%'u", cur.stat.discard.fragment); + sprintf(tmp, "%u", cur.stat.discard.fragment); waddstr_b(w_stats, tmp); waddstr(w_stats, " frag, "); - sprintf(tmp, "%'u", cur.stat.discard.misc); + sprintf(tmp, "%u", cur.stat.discard.misc); waddstr_b(w_stats, tmp); waddstr(w_stats, " misc"); @@ -180,11 +182,11 @@ static void display_stats(void) waddstr_b(w_stats, tmp); waddstr(w_stats, ", mac retries: "); - sprintf(tmp, "%'u", cur.stat.discard.retries); + sprintf(tmp, "%u", cur.stat.discard.retries); waddstr_b(w_stats, tmp); waddstr(w_stats, ", missed beacons: "); - sprintf(tmp, "%'u", cur.stat.miss.beacon); + sprintf(tmp, "%u", cur.stat.miss.beacon); waddstr_b(w_stats, tmp); wclrtoborder(w_stats); |