aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorahothan <ahothan@cisco.com>2018-10-12 11:49:02 -0700
committerahothan <ahothan@cisco.com>2018-10-12 11:49:02 -0700
commitb68b487864cc080b86ad358a5b1fb9bad912efd4 (patch)
tree176897fbeaa5572fcb88c421f5e13f6883b631ee
parentcd455c418173a978f89bdbb83f79d15c5fa53e03 (diff)
Add + or - sign to drop packets and drop rates
Change-Id: I76da22b1ca232f6d222e4a263a42c669da15fb26 Signed-off-by: ahothan <ahothan@cisco.com>
-rw-r--r--nfvbench/summarizer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nfvbench/summarizer.py b/nfvbench/summarizer.py
index 4e70294..0d84ab2 100644
--- a/nfvbench/summarizer.py
+++ b/nfvbench/summarizer.py
@@ -64,7 +64,7 @@ def _annotate_chain_stats(chain_stats, nodrop_marker='=>'):
drop = cur_count - prev_count
if drop:
dr = (drop * 100.0) / prev_count if prev_count else 0
- annotated_value = '{:,} ({:.4f}%)'.format(drop, dr)
+ annotated_value = '{:+,} ({:+.4f}%)'.format(drop, dr)
else:
# no drop
# if last column we display the value