summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClark Williams <williams@redhat.com>2018-02-23 10:05:55 -0600
committerClark Williams <williams@redhat.com>2018-02-23 14:29:53 -0600
commit61d21a918b9ce9bac3f63dbfc9bd36f435de2d84 (patch)
tree9d1aa28651e4e37bbb32e031d87b1eb933ac0edb
parent9a5c9c514d217d2b7c33469c4f29cbea3d6c25c6 (diff)
downloadrt-tests-61d21a918b9ce9bac3f63dbfc9bd36f435de2d84.tar.gz
hwlatdetect: fix str/binary mismatches
Signed-off-by: Clark Williams <williams@redhat.com>
-rwxr-xr-xsrc/hwlatdetect/hwlatdetect.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hwlatdetect/hwlatdetect.py b/src/hwlatdetect/hwlatdetect.py
index 6d8aeeb..d3b79a2 100755
--- a/src/hwlatdetect/hwlatdetect.py
+++ b/src/hwlatdetect/hwlatdetect.py
@@ -561,7 +561,7 @@ if __name__ == '__main__':
if o.window:
w = microseconds(o.window)
- if w < detect.get("width"):
+ if w < int(detect.get("width")):
debug("shrinking width to %d for new window of %d" % (w/2, w))
detect.set("width", w/2)
debug("window parameter = %d" % w)
@@ -570,7 +570,7 @@ if __name__ == '__main__':
if o.width:
w = microseconds(o.width)
- if w > detect.get("window"):
+ if w > int(detect.get("window")):
debug("widening window to %d for new width of %d" % (w*2, w))
detect.set("window", w*2)
debug("width parameter = %d" % w)