fix formatting slightly

This commit is contained in:
ps 2011-09-30 08:27:27 +00:00
parent 7439486bc6
commit 81d8902069
1 changed files with 8 additions and 9 deletions

View File

@ -220,16 +220,16 @@ main
retval=pthread_create(&thread,&thread_attr,thread_main,(void *)&info_stack); retval=pthread_create(&thread,&thread_attr,thread_main,(void *)&info_stack);
if(retval) if(retval)
{ {
LERR(_("Error creating thread: ") + Utils::errnotostrerror(retval) + _(". Sleeping 5 seconds before continuing...")); LERR(_("Error creating thread: ") + Utils::errnotostrerror(retval) + _(". Sleeping 5 seconds before continuing..."));
sleep(5); sleep(5);
} }
else else
{ {
#ifdef WIN32 #ifdef WIN32
LDEB("New thread created [" + Utils::ulongtostr(nconns) + "] thread_id: " + Utils::ulongtostr((unsigned long)thread.p) + ":" + Utils::ulongtostr(thread.x)); LDEB("New thread created [" + Utils::ulongtostr(nconns) + "] thread_id: " + Utils::ulongtostr((unsigned long)thread.p) + ":" + Utils::ulongtostr(thread.x));
#else #else
LDEB("New thread created [" + Utils::ulongtostr(nconns) + "] thread_id: " + Utils::ulongtostr(thread)); LDEB("New thread created [" + Utils::ulongtostr(nconns) + "] thread_id: " + Utils::ulongtostr(thread));
#endif //WIN32 #endif //WIN32
pthread_mutex_lock(&childrenlist_mutex); pthread_mutex_lock(&childrenlist_mutex);
children.push_back(nconns); children.push_back(nconns);
pthread_mutex_unlock(&childrenlist_mutex); pthread_mutex_unlock(&childrenlist_mutex);
@ -291,9 +291,8 @@ void *cleaner_thread_run(void *)
unsigned long spamcount=0; unsigned long spamcount=0;
next_run=now+3600; //if we just add 3600 like before, then if next_run=now+3600; //if we just add 3600 like before, then if
//time changes during execution of hermes this will run //time changes during execution of hermes this will run
//every few seconds instead of every hour //every few seconds instead of every hour
try try
{ {