Add hidden config flag to be able disable lag adaption

globally.
This commit is contained in:
asofold 2013-01-04 17:31:29 +01:00
parent 1564115dd0
commit afe98203f0
2 changed files with 4 additions and 1 deletions

View File

@ -24,7 +24,7 @@ public abstract class ACheckConfig implements ICheckConfig {
*/
public ACheckConfig(final ConfigFile config, final String pathPrefix){
debug = config.getBoolean(pathPrefix + ConfPaths.SUB_DEBUG, false);
lag = config.getBoolean(pathPrefix + ConfPaths.SUB_LAG, true);
lag = config.getBoolean(pathPrefix + ConfPaths.SUB_LAG, true) && config.getBoolean(ConfPaths.MISCELLANEOUS_LAG, true);
}
@Override

View File

@ -54,6 +54,9 @@ public abstract class ConfPaths {
private static final String MISCELLANEOUS_NOMOVEDTOOQUICKLY = MISCELLANEOUS + "nomovedtooquickly.";
public static final String MISCELLANEOUS_NOMOVEDTOOQUICKLY_ENABLED = MISCELLANEOUS_NOMOVEDTOOQUICKLY + "enabled";
public static final String MISCELLANEOUS_NOMOVEDTOOQUICKLY_USEPROXY = MISCELLANEOUS_NOMOVEDTOOQUICKLY + "useproxy";
/** TEMP: hidden flag to disable all lag adaption with one flag. */
public static final String MISCELLANEOUS_LAG = MISCELLANEOUS + "lag";
@GlobalConfig
private static final String DATA = "data.";