Use 100* integer for gain comparison

This commit is contained in:
2019-09-03 00:12:45 +01:00
parent 3fb656b693
commit fa287305eb

View File

@@ -720,7 +720,9 @@ public class Sentence extends DefaultMutableTreeNode implements Cacheable {
if (g <= 0.0001d) g = 1.0d;
if (g == gain) return;
if (gain != g) {
int gint = (int)(g * 100d);
int gainint = (int)(gain * 100d);
if (gint != gainint) {
debug("Gain based purge");
CacheManager.removeFromCache(this);
}