[Lldb-commits] [lldb] r154221 - /lldb/trunk/examples/python/disasm-stress-test.py

Sean Callanan scallanan at apple.com
Fri Apr 6 16:00:31 PDT 2012


Author: spyffe
Date: Fri Apr  6 18:00:31 2012
New Revision: 154221

URL: http://llvm.org/viewvc/llvm-project?rev=154221&view=rev
Log:
The remaining time calculation didn't reflect the
--start argument.  Fixed that.

Modified:
    lldb/trunk/examples/python/disasm-stress-test.py

Modified: lldb/trunk/examples/python/disasm-stress-test.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/examples/python/disasm-stress-test.py?rev=154221&r1=154220&r2=154221&view=diff
==============================================================================
--- lldb/trunk/examples/python/disasm-stress-test.py (original)
+++ lldb/trunk/examples/python/disasm-stress-test.py Fri Apr  6 18:00:31 2012
@@ -80,7 +80,7 @@
         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):





More information about the lldb-commits mailing list