Skip to content

Commit

Permalink
Use Constants.SECOND_IN_MS for check
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsvanvelzen committed Oct 3, 2018
1 parent 69a1a8a commit 94b00a7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ private synchronized void syncTreatmentsData(DataMap dataMap, boolean bBenchmark
continue;
}
final long since = JoH.msSince(timestamp);
if ((since < -(5 * 1000)) || (since > Constants.HOUR_IN_MS * 72)) {
if ((since < -(Constants.SECOND_IN_MS * 5)) || (since > Constants.HOUR_IN_MS * 72)) {
JoH.static_toast_long("Rejecting wear treatment as time out of range!");
UserError.Log.e(TAG, "Rejecting wear treatment due to time: " + record + " since: " + since);
} else {
Expand Down

0 comments on commit 94b00a7

Please sign in to comment.