fix stats submission

This commit is contained in:
ps 2011-02-03 10:37:42 +00:00
parent 126d365cfe
commit 2bd7b46623
1 changed files with 5 additions and 1 deletions

View File

@ -288,6 +288,11 @@ void *cleaner_thread_run(void *)
{
unsigned long spamcount;
next_run=now+3600; //if we just add 3600 like before, then if
//time changes during execution of hermes this will run
//every few seconds instead of every hour
try
{
spamcount=db.cleanDB();
@ -328,7 +333,6 @@ void *cleaner_thread_run(void *)
LDEB("Exception sending stats: "+string(e));
}
}
next_run+=3600;
}
#ifndef WIN32
if(false==cfg.getBackground())