Skip to content

Commit

Permalink
Fix last update timestamp in price feed service
Browse files Browse the repository at this point in the history
  • Loading branch information
devinbileck committed Sep 27, 2018
1 parent 5c66385 commit 3663d6c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,21 +280,21 @@ public ReadOnlyIntegerProperty updateCounterProperty() {
}

public Date getLastRequestTimeStampBtcAverage() {
return new Date(epochInSecondAtLastRequest * 1000);
return new Date(epochInSecondAtLastRequest);
}

public Date getLastRequestTimeStampPoloniex() {
Long ts = timeStampMap.get("btcAverageTs");
if (ts != null) {
return new Date(ts * 1000);
return new Date(ts);
} else
return new Date();
}

public Date getLastRequestTimeStampCoinmarketcap() {
Long ts = timeStampMap.get("coinmarketcapTs");
if (ts != null) {
return new Date(ts * 1000);
return new Date(ts);
} else
return new Date();
}
Expand Down

0 comments on commit 3663d6c

Please sign in to comment.