projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
932f303
)
fio2gnplot: Renaming file variable to myfile
author
Erwan Velu
<erwan@enovance.com>
Fri, 2 Aug 2013 08:51:25 +0000
(10:51 +0200)
committer
Erwan Velu
<erwan@enovance.com>
Mon, 5 Aug 2013 15:09:59 +0000
(17:09 +0200)
'file' could be reserved on some modules or in the python.
It's better to rename it to avoid troubles.
tools/plot/fio2gnuplot.py
patch
|
blob
|
blame
|
history
diff --git
a/tools/plot/fio2gnuplot.py
b/tools/plot/fio2gnuplot.py
index c6cf66b2a8b23283adade5cb67bfefe414de8c8e..6ce5e36219d5518f3d96f0a121b28aa5674102f2 100755
(executable)
--- a/
tools/plot/fio2gnuplot.py
+++ b/
tools/plot/fio2gnuplot.py
@@
-160,8
+160,8
@@
def compute_temp_file(fio_data_file,disk_perf,gnuplot_output_dir, min_time, max_
current_line=[]
nb_empty_files=0
nb_files=len(files)
- for file in files:
- s=file.readline().replace(',',' ').split()
+ for
my
file in files:
+ s=
my
file.readline().replace(',',' ').split()
if not s:
nb_empty_files+=1
s="-1, 0, 0, 0".replace(',',' ').split()