Fixed rare instances of lookups displaying negative time values
This commit is contained in:
parent
5530a89189
commit
1c476408e9
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue