summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2012-04-06 23:00:31 +0000
committerSean Callanan <scallanan@apple.com>2012-04-06 23:00:31 +0000
commit1106434be3170397263bcf516d5d83e4a8ae4b95 (patch)
treee7bc7b73f045b82e43f5b3155b1db8220f7c6d96 /lldb/examples/python
parent668b9e9c6542ca46a9121d9ce35609deb6b84b45 (diff)
downloadbcm5719-llvm-1106434be3170397263bcf516d5d83e4a8ae4b95.tar.gz
bcm5719-llvm-1106434be3170397263bcf516d5d83e4a8ae4b95.zip
The remaining time calculation didn't reflect the
--start argument. Fixed that. llvm-svn: 154221
Diffstat (limited to 'lldb/examples/python')
-rwxr-xr-xlldb/examples/python/disasm-stress-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/examples/python/disasm-stress-test.py b/lldb/examples/python/disasm-stress-test.py
index ac6b6ff5b48..ff199973d41 100755
--- a/lldb/examples/python/disasm-stress-test.py
+++ b/lldb/examples/python/disasm-stress-test.py
@@ -80,7 +80,7 @@ class SequentialInstructionProvider:
self.m_value += self.m_skip
return ret
def GetNumInstructions(self):
- return self.m_last / self.m_skip
+ return (self.m_last - self.m_start) / self.m_skip
def __iter__(self):
return self
def next(self):
OpenPOWER on IntegriCloud