diff options
author | Clark Williams <williams@redhat.com> | 2012-08-13 14:36:37 -0500 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2012-08-13 14:36:37 -0500 |
commit | 5609dade84b7c3a50fb60845d3999747904afc76 (patch) | |
tree | 9899f34d0521a1033d7ef895d859bb262868a660 | |
parent | 3e87a2dbde2d235280b9caa887fdba40af24d10f (diff) | |
download | rteval-5609dade84b7c3a50fb60845d3999747904afc76.tar.gz rteval-5609dade84b7c3a50fb60845d3999747904afc76.tar.xz rteval-5609dade84b7c3a50fb60845d3999747904afc76.zip |
make sure that priority parameter is converted to int
Signed-off-by: Clark Williams <williams@redhat.com>
-rw-r--r-- | rteval/cyclictest.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rteval/cyclictest.py b/rteval/cyclictest.py index f00cf14..abf8a95 100644 --- a/rteval/cyclictest.py +++ b/rteval/cyclictest.py @@ -40,7 +40,7 @@ class RunData(object): def __init__(self, id, type, priority): self.id = id self.type = type - self.priority = priority + self.priority = int(priority) self.description = '' # histogram of data self.samples = {} @@ -213,12 +213,12 @@ class Cyclictest(Thread): '-qm', '-d0', '-h %d' % buckets, - "-p%d" % self.priority, + "-p%d" % int(self.priority), self.getmode(), ] if self.threads: - self.cmd.append("-t%d" % self.threads) + self.cmd.append("-t%d" % int(self.threads)) self.debug("starting with cmd: %s" % " ".join(self.cmd)) null = os.open('/dev/null', os.O_RDWR) |