EmulatorArchive / jpcsp

Automatically exported from code.google.com/p/jpcsp
1 stars 0 forks source link

CpuDurationStatistics compareTo error #278

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
In the compareTo function in trunk/src/jpcsp/util/CpuDurationStatistics.java 
the object o that is passed in is being compared to itself. Due to this, the 
function will forever return the value of 1. I've created a quick patch modeled 
on how the parent class DurationStatistics works (ie, if this < o return 1 and 
this > o return -1).

Original issue reported on code.google.com by TheGhost...@gmail.com on 6 Dec 2011 at 5:27

Attachments:

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r2405.

Original comment by gi...@web.de on 15 Dec 2011 at 7:02

GoogleCodeExporter commented 9 years ago
Thank you! (I just saw the issue now)
Fixed in r2405 as suggested.

Original comment by gi...@web.de on 15 Dec 2011 at 7:04