Code Review
/
nfvbench.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
cd455c4
)
Add + or - sign to drop packets and drop rates
63/63463/1
author
ahothan
<ahothan@cisco.com>
Fri, 12 Oct 2018 18:49:02 +0000
(11:49 -0700)
committer
ahothan
<ahothan@cisco.com>
Fri, 12 Oct 2018 18:49:02 +0000
(11:49 -0700)
Change-Id: I76da22b1ca232f6d222e4a263a42c669da15fb26
Signed-off-by: ahothan <ahothan@cisco.com>
nfvbench/summarizer.py
patch
|
blob
|
history
diff --git
a/nfvbench/summarizer.py
b/nfvbench/summarizer.py
index
4e70294
..
0d84ab2
100644
(file)
--- 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