forked from I2P_Developers/i2p.i2p
Sybil: Fix retention of old analysis files when configured to never delete
This commit is contained in:
@@ -196,6 +196,9 @@ public class PersistSybil {
|
||||
removeTime = Analysis.DEFAULT_REMOVE_TIME;
|
||||
}
|
||||
long age = _context.getProperty(Analysis.PROP_REMOVETIME, removeTime);
|
||||
// 0 means never delete
|
||||
if (age <= 0)
|
||||
return;
|
||||
long freq2 = 2 * _context.getProperty(Analysis.PROP_FREQUENCY, Analysis.DEFAULT_FREQUENCY);
|
||||
if (age < freq2)
|
||||
age = freq2;
|
||||
|
||||
Reference in New Issue
Block a user