Code Review
/
integration
/
test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4062268
)
dsbenchmark.py: removing space after comma while creating csv file
64/47064/2
author
Peter Gubka
<pgubka@cisco.com>
Tue, 18 Oct 2016 10:59:04 +0000
(12:59 +0200)
committer
Vratko Polák
<vrpolak@cisco.com>
Wed, 19 Oct 2016 11:48:38 +0000
(11:48 +0000)
Change-Id: Ib4c94f4fb3217d88e8f05944025a03728dbb8d54
Signed-off-by: Peter Gubka <pgubka@cisco.com>
tools/mdsal_benchmark/dsbenchmark.py
patch
|
blob
|
history
diff --git
a/tools/mdsal_benchmark/dsbenchmark.py
b/tools/mdsal_benchmark/dsbenchmark.py
index 7dc00f7bcf1404ba5dec0bb07111eaf84d80315e..1c1ec09bfccc15666064a7d26f2a9d9f373ea014 100755
(executable)
--- a/
tools/mdsal_benchmark/dsbenchmark.py
+++ b/
tools/mdsal_benchmark/dsbenchmark.py
@@
-184,10
+184,10
@@
def write_results_to_file(values, file_name, key_filter):
try:
for key in sorted(values):
if (key_filter != 'none') & ((key_filter == 'all') | (re.search(key_filter, key) is not None)):
- first_line += key + ',
'
- second_line += str(values[key]) + ',
'
- first_line = first_line[:-
2
]
- second_line = second_line[:-
2
]
+ first_line += key + ','
+ second_line += str(values[key]) + ','
+ first_line = first_line[:-
1
]
+ second_line = second_line[:-
1
]
f.write(first_line + '\n')
f.write(second_line + '\n')
finally: