%run -t computes system time incorrectly

Bug #296386 reported by aaron
2
Affects Status Importance Assigned to Milestone
IPython
Fix Released
Low
Brian Granger

Bug Description

A typo in the code for %run -t (timed run of a python script) causes it to incorrectly report the system time used. In the current code, the final system time is subtracted from itself, causing 0.00 to be reported regardless of the actual system time, instead of subtracting the initial value.

The bug has been corrected in the attached diff file.

Related branches

Revision history for this message
aaron (aaronkatz) wrote :
Revision history for this message
aaron (aaronkatz) wrote :

The previous patch I submitted only fixed one instance of this. The cases of one run and multiple timed runs are handled separately. Now both are fixed.

Changed in ipython:
assignee: nobody → ellisonbg
importance: Undecided → Low
status: New → Fix Committed
Changed in ipython:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.