Skip to contentSkip to conversation

IOzone preprocessing: Fix wrong column mapping on graph generation

PATCH In review Lucas Meneghel Rodrigues 2 participants 2 messages May 6, 2010 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 IOzone preprocessing: Fix wrong column mapping on graph generation

Fix a silly bug on graph generation: it was mapping the wrong columns when plotting the 2D throughput graphs. Sorry for the mistake.

---
 client/tests/iozone/postprocessing.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
client/tests/iozone/postprocessing.py +1 -1
index c995aea..3a77c83 100755
@@ -384,7 +384,7 @@ class IOzonePlotter(object):
         record size vs. throughput.
         """
         datasource_2d = os.path.join(self.output_dir, '2d-datasource-file')
-        for index, label in zip(range(1, 14), _LABELS[2:]):
+        for index, label in zip(range(2, 15), _LABELS[2:]):
             commands_path = os.path.join(self.output_dir, '2d-%s.do' % label)
             commands = ""
             commands += "set title 'Iozone performance: %s'\n" % label
Signature · 1 line
1.7.0.1
#1 lore raw

LGTM

Quoted 30 lines · Lucas Meneghel Rodrigues

Fix a silly bug on graph generation: it was mapping the wrong columns when plotting the 2D throughput graphs. Sorry for the mistake.

---
 client/tests/iozone/postprocessing.py |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
client/tests/iozone/postprocessing.py +0 -0
index c995aea..3a77c83 100755
@@ -384,7 +384,7 @@ class IOzonePlotter(object):

        record size vs. throughput.
        """
        datasource_2d = os.path.join(self.output_dir, '2d-datasource-file')
-        for index, label in zip(range(1, 14), _LABELS[2:]):
+        for index, label in zip(range(2, 15), _LABELS[2:]):
            commands_path = os.path.join(self.output_dir, '2d-%s.do' % label) commands = ""
            commands += "set title 'Iozone performance: %s'\n" % label --
1.7.0.1

_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest