diff options
author | Clark Williams <williams@redhat.com> | 2018-02-23 10:05:55 -0600 |
---|---|---|
committer | Clark Williams <williams@redhat.com> | 2018-02-23 10:05:55 -0600 |
commit | bb93688d49460a6328b769d8c570d7973ecc9f9d (patch) | |
tree | 004c38c3bfaba35b987b5cff9ec9894cf460de9b | |
parent | f496898e2ff07953eed61cbd0b55cb2e4c8559c8 (diff) | |
download | rt-tests-bb93688d49460a6328b769d8c570d7973ecc9f9d.tar.gz |
hwlatdetect: fix str/binary mismatches
Signed-off-by: Clark Williams <williams@redhat.com>
-rwxr-xr-x | src/hwlatdetect/hwlatdetect.py | 4 |
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) |