Fixed rare instances of lookups displaying negative time values

This commit is contained in:
Intelli 2022-02-28 17:11:24 -07:00
parent 5530a89189
commit 1c476408e9

View File

@ -231,6 +231,9 @@ public class Util extends Queue {
public static String getTimeSince(long resultTime, long currentTime, boolean component) {
StringBuilder message = new StringBuilder();
double timeSince = currentTime - (resultTime + 0.00);
if (timeSince < 0.00) {
timeSince = 0.00;
}
// minutes
timeSince = timeSince / 60;