Skip to content

Commit

Permalink
[cuebot] Fix timeDiff for exception message. (#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
splhack committed Oct 20, 2021
1 parent ba90de8 commit db938da
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,8 +577,8 @@ public CommentSeq getComments(JobInterface j) {
public UpdatedFrameCheckResult getUpdatedFrames(JobInterface job,
List<LayerInterface> layers, int epochSeconds) {

if ((System.currentTimeMillis() / 1000) - epochSeconds > 60) {
long timeDiff = System.currentTimeMillis() - epochSeconds;
long timeDiff = (System.currentTimeMillis() / 1000) - epochSeconds;
if (timeDiff > 60) {
throw new IllegalArgumentException("the last update timestamp cannot be over " +
"a minute off the current time, difference was: " + timeDiff);
}
Expand Down

0 comments on commit db938da

Please sign in to comment.