Skip to content

Commit 9f72368

Browse files
author
zhilingc
committed
Convert millis to seconds
1 parent 08fed02 commit 9f72368

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

serving/src/main/java/feast/serving/service/RedisServingService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ private boolean isStale(
223223
}
224224
long givenTimestamp = entityRow.getEntityTimestamp().getSeconds();
225225
if (givenTimestamp == 0) {
226-
givenTimestamp = System.currentTimeMillis();
226+
givenTimestamp = System.currentTimeMillis() / 1000;
227227
}
228228
long timeDifference = givenTimestamp - featureRow.getEventTimestamp().getSeconds();
229229
return timeDifference > featureSetRequest.getMaxAge().getSeconds();

0 commit comments

Comments
 (0)