* Changed default update delay to twelve hours, and enforced a minimum

delay of one hour.
This commit is contained in:
ragnarok
2005-10-04 00:27:34 +00:00
committed by zzz
parent 30f6f26a68
commit f540dc798b
3 changed files with 7 additions and 2 deletions

View File

@ -278,7 +278,7 @@ public class BlogManager {
public String getDefaultProxyHost() { return _context.getProperty("syndie.defaultProxyHost", ""); }
public String getDefaultProxyPort() { return _context.getProperty("syndie.defaultProxyPort", ""); }
public int getUpdateDelay() { return Integer.parseInt(_context.getProperty("syndie.updateDelay", "1")); }
public int getUpdateDelay() { return Integer.parseInt(_context.getProperty("syndie.updateDelay", "12")); }
public String[] getUpdateArchives() { return _context.getProperty("syndie.updateArchives", "").split(","); }
public boolean authorizeAdmin(String pass) {

View File

@ -46,6 +46,7 @@ public class Updater {
while (true) {
int delay = BlogManager.instance().getUpdateDelay();
if (delay < 1) delay = 1;
update();
try {
synchronized (this) {

View File

@ -1,4 +1,8 @@
$Id: history.txt,v 1.277 2005/10/01 14:20:10 jrandom Exp $
$Id: history.txt,v 1.278 2005/10/03 13:55:10 ragnarok Exp $
2005-10-03 rangarok
* Changed default update delay to twelve hours, and enforced a minimum
delay of one hour.
2005-10-03 ragnarok
* Implemented a Syndie auto-updater. It will automatically pull new posts