Checkpoint: ExchangeServiceTest

Signed-off-by: Marcin Woźniak <y0rune@aol.com>
This commit is contained in:
2021-01-13 13:30:46 +01:00
parent ed528ad9a0
commit d1641277ac
2 changed files with 11 additions and 17 deletions

View File

@ -59,10 +59,10 @@ public class MatchData {
}
public int compare(MatchData m1) {
return Float.compare(m1.getExchangesMsValue(), this.getExchangesMsValue());
return Long.compare(m1.getExchangesMsValue(), this.getExchangesMsValue());
}
public float getExchangesMsValue(){
public long getExchangesMsValue(){
return this.exchangeOne.getDataExchange().getTime() + this.exchangeTwo.getDataExchange().getTime();
}
}