TickTask.getLag: Never return anything smaller than 1.

This commit is contained in:
asofold 2013-01-27 05:06:33 +01:00
parent 200a96440e
commit 342ef0f5a6

View File

@ -266,8 +266,8 @@ public class TickTask implements Runnable {
sum += passed;
}
}
return (float) sum / (float) covered;
// TODO: Investigate on < 1f.
return Math.max(1f, (float) sum / (float) covered);
}
/**