diff options
author | Jonathan McCrohan <jmccrohan@gmail.com> | 2014-01-25 00:07:30 +0000 |
---|---|---|
committer | Jonathan McCrohan <jmccrohan@gmail.com> | 2014-01-25 00:07:30 +0000 |
commit | d7ca0c3e555ef0b5250873ddce48ccf2326b017a (patch) | |
tree | 52fc801f0893eb7752524b2602d420afbda4ed59 /info_scr.c | |
parent | 3645c236e9720deb696e7aebc33cd9a6d8cbbdc6 (diff) | |
download | wavemon-d7ca0c3e555ef0b5250873ddce48ccf2326b017a.tar.gz |
Imported Upstream version 0.7.6upstream/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); |