%run -t computes system time incorrectly
Bug #296386 reported by
aaron
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
lp://staging/~ellisonbg/ipython/bugfixes0411409
- Fernando Perez: Needs Fixing
- Diff: None lines
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.
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.