Work on RandomTrader

This commit is contained in:
7u83 2016-12-28 09:34:48 +01:00
parent 41cb87c9d4
commit 806a74014d
1 changed files with 3 additions and 5 deletions

View File

@ -38,11 +38,9 @@ public abstract class Order implements Comparable<Order> {
if (o.limit > limit) {
r=1;
}
if (r==0)
return 0;
if (type==OrderType.ask)
return 1-r;
return -r;
return r;
@ -60,12 +58,12 @@ public abstract class Order implements Comparable<Order> {
if (r!=0)
return r;
if (o.timestamp> timestamp)
/* if (o.timestamp> timestamp)
return -1;
if (o.timestamp<timestamp)
return 1;
*/
if (o.id>id)
return -1;