From 81d89020693ef8f2f172add1532317c348662176 Mon Sep 17 00:00:00 2001 From: ps Date: Fri, 30 Sep 2011 08:27:27 +0000 Subject: [PATCH] fix formatting slightly --- src/hermes.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/hermes.cpp b/src/hermes.cpp index 5af8c45..aef105e 100644 --- a/src/hermes.cpp +++ b/src/hermes.cpp @@ -220,16 +220,16 @@ main retval=pthread_create(&thread,&thread_attr,thread_main,(void *)&info_stack); 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); } else { - #ifdef WIN32 - LDEB("New thread created [" + Utils::ulongtostr(nconns) + "] thread_id: " + Utils::ulongtostr((unsigned long)thread.p) + ":" + Utils::ulongtostr(thread.x)); - #else - LDEB("New thread created [" + Utils::ulongtostr(nconns) + "] thread_id: " + Utils::ulongtostr(thread)); - #endif //WIN32 + #ifdef WIN32 + LDEB("New thread created [" + Utils::ulongtostr(nconns) + "] thread_id: " + Utils::ulongtostr((unsigned long)thread.p) + ":" + Utils::ulongtostr(thread.x)); + #else + LDEB("New thread created [" + Utils::ulongtostr(nconns) + "] thread_id: " + Utils::ulongtostr(thread)); + #endif //WIN32 pthread_mutex_lock(&childrenlist_mutex); children.push_back(nconns); pthread_mutex_unlock(&childrenlist_mutex); @@ -291,9 +291,8 @@ void *cleaner_thread_run(void *) unsigned long spamcount=0; 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 - + //time changes during execution of hermes this will run + //every few seconds instead of every hour try {