Fixed jsontimer-interval config not being used.

Change JsonTimerTask.java to use jsontimer-interval+10 to allow a buffer for late/delayed client requests(to prevent updated tiles info to be missing)
This commit is contained in:
Jason Booth 2011-02-17 10:05:07 -06:00
parent 77d9a88868
commit 3916c363ae
2 changed files with 2 additions and 2 deletions

View file

@ -115,7 +115,7 @@ public class DynmapPlugin extends JavaPlugin {
if(configuration.getBoolean("jsonfile", false)) {
jsonConfig();
int jsonInterval = configuration.getInt("jsonfile", 1) * 1000;
int jsonInterval = configuration.getInt("jsonfile-interval", 1) * 1000;
timer = new Timer();
timer.scheduleAtFixedRate(new JsonTimerTask(this, configuration), jsonInterval, jsonInterval);
}