Checkpoint: ExchangeServiceTest

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

No files matched your search

@@ -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();
}
}