summaryrefslogtreecommitdiff
path: root/tools/tools
diff options
context:
space:
mode:
authorAdrian Chadd <adrian@FreeBSD.org>2020-05-14 05:01:18 +0000
committerAdrian Chadd <adrian@FreeBSD.org>2020-05-14 05:01:18 +0000
commit3347e196e23a15ef12386751fe8a46f9fbf62d47 (patch)
tree9dae23c16e1bf8bbaf2a0a2cdde70e8dc1f37de9 /tools/tools
parent3dbb9df36bdb0a7e8e00f24f94fa06a802a3eeee (diff)
downloadsrc-test2-3347e196e23a15ef12386751fe8a46f9fbf62d47.tar.gz
src-test2-3347e196e23a15ef12386751fe8a46f9fbf62d47.zip
Notes
Diffstat (limited to 'tools/tools')
-rw-r--r--tools/tools/ath/athratestats/main.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/tools/tools/ath/athratestats/main.c b/tools/tools/ath/athratestats/main.c
index b0e390e12896..b49029627f3c 100644
--- a/tools/tools/ath/athratestats/main.c
+++ b/tools/tools/ath/athratestats/main.c
@@ -122,7 +122,7 @@ ath_sample_stats(struct ath_ratestats *r, struct ath_rateioctl_rt *rt,
(long long) sn->ratemask);
for (y = 0; y < NUM_PACKET_SIZE_BINS; y++) {
- PRINTATTR_ON(COLOR_PAIR(4 + (y % 2)) | A_BOLD);
+ PRINTATTR_ON(COLOR_PAIR(2 + (y % 4)) | A_BOLD);
PRINTMSG("[%4u] cur rate %d %s since switch: "
"packets %d ticks %u ",
bin_to_size(y),
@@ -132,17 +132,16 @@ ath_sample_stats(struct ath_ratestats *r, struct ath_rateioctl_rt *rt,
sn->ticks_since_switch[y]);
PRINTMSG("last sample (%d %s) cur sample (%d %s) "
- "packets sent %d\n",
+ "packets sent %d ",
dot11rate(rt, sn->last_sample_rix[y]),
dot11str(rt, sn->last_sample_rix[y]),
dot11rate(rt, sn->current_sample_rix[y]),
dot11str(rt, sn->current_sample_rix[y]),
sn->packets_sent[y]);
- PRINTATTR_OFF(COLOR_PAIR(4 + (y % 2)) | A_BOLD);
+ PRINTATTR_OFF(COLOR_PAIR(2 + (y % 4)) | A_BOLD);
- PRINTATTR_ON(COLOR_PAIR(3) | A_BOLD);
- PRINTMSG("[%4u] packets since sample %d sample tt %u\n",
- bin_to_size(y),
+ PRINTATTR_ON(COLOR_PAIR(1) | A_BOLD);
+ PRINTMSG("packets since sample %d sample tt %u\n",
sn->packets_since_sample[y],
sn->sample_tt[y]);
PRINTATTR_OFF(COLOR_PAIR(3) | A_BOLD);
@@ -156,9 +155,9 @@ ath_sample_stats(struct ath_ratestats *r, struct ath_rateioctl_rt *rt,
if (sn->stats[y][rix].total_packets == 0)
continue;
if (rix == sn->current_rix[y])
- PRINTATTR_ON(COLOR_PAIR(y+4) | A_BOLD);
+ PRINTATTR_ON(COLOR_PAIR(2 + (y % 4)) | A_BOLD);
else if (rix == sn->last_sample_rix[y])
- PRINTATTR_ON(COLOR_PAIR(3) | A_BOLD);
+ PRINTATTR_ON(COLOR_PAIR(1) | A_BOLD);
#if 0
else if (sn->stats[y][rix].ewma_pct / 10 < 50)
PRINTATTR_ON(COLOR_PAIR(2) | A_BOLD);
@@ -179,9 +178,9 @@ ath_sample_stats(struct ath_ratestats *r, struct ath_rateioctl_rt *rt,
sn->stats[y][rix].average_tx_time,
sn->stats[y][rix].last_tx);
if (rix == sn->current_rix[y])
- PRINTATTR_OFF(COLOR_PAIR(y+4) | A_BOLD);
+ PRINTATTR_OFF(COLOR_PAIR(2 + (y % 4)) | A_BOLD);
else if (rix == sn->last_sample_rix[y])
- PRINTATTR_OFF(COLOR_PAIR(3) | A_BOLD);
+ PRINTATTR_OFF(COLOR_PAIR(1) | A_BOLD);
#if 0
else if (sn->stats[y][rix].ewma_pct / 10 < 50)
PRINTATTR_OFF(COLOR_PAIR(2) | A_BOLD);