From b68b487864cc080b86ad358a5b1fb9bad912efd4 Mon Sep 17 00:00:00 2001 From: ahothan Date: Fri, 12 Oct 2018 11:49:02 -0700 Subject: Add + or - sign to drop packets and drop rates Change-Id: I76da22b1ca232f6d222e4a263a42c669da15fb26 Signed-off-by: ahothan --- nfvbench/summarizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit 1.2.3-korg