From: Kern Sibbald Date: Sat, 15 Aug 2009 13:39:04 +0000 (+0200) Subject: Minor line spacing tweak X-Git-Tag: Release-5.0.0~332^2~27 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=26dea9b764cb849b57c565b8cd0411e6551ac3c3;p=bacula%2Fbacula Minor line spacing tweak --- diff --git a/bacula/src/stored/wait.c b/bacula/src/stored/wait.c index 573f97baca..f8fbb970f6 100644 --- a/bacula/src/stored/wait.c +++ b/bacula/src/stored/wait.c @@ -104,11 +104,12 @@ int wait_for_sysop(DCR *dcr) Dmsg4(dbglvl, "I'm going to sleep on device %s. HB=%d rem_wait=%d add_wait=%d\n", dev->print_name(), (int)me->heartbeat_interval, dev->rem_wait_sec, add_wait); start = time(NULL); + /* Wait required time */ stat = pthread_cond_timedwait(&dev->wait_next_vol, &dev->m_mutex, &timeout); + Dmsg2(dbglvl, "Wokeup from sleep on device stat=%d blocked=%s\n", stat, dev->print_blocked()); - now = time(NULL); total_waited = now - first_start; dev->rem_wait_sec -= (now - start); @@ -135,7 +136,6 @@ int wait_for_sysop(DCR *dcr) break; } - if (dev->rem_wait_sec <= 0) { /* on exceeding wait time return */ Dmsg0(dbglvl, "Exceed wait time.\n"); stat = W_TIMEOUT;