Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
Merge pull request #3786 from manan164/wait_task_test_fix
Browse files Browse the repository at this point in the history
Wait until calculation fix.
  • Loading branch information
v1r3n authored Sep 27, 2023
2 parents 1c899db + ee190d5 commit 4c14bb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void setCallbackAfter(TaskModel task) {
Date expiryDate = parseDate(until);
long timeInMS = expiryDate.getTime();
long now = System.currentTimeMillis();
long seconds = ((timeInMS - now) / 1000) + 1;
long seconds = ((timeInMS - now) / 1000);
if (seconds < 0) {
seconds = 0;
}
Expand Down

0 comments on commit 4c14bb7

Please sign in to comment.