From 7d382e549434882838f21ead7d53a3fbebd224e0 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Thu, 24 Feb 2011 17:22:44 +0100 Subject: [PATCH] Fix week of year schduling bug #1699 --- bacula/src/dird/scheduler.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bacula/src/dird/scheduler.c b/bacula/src/dird/scheduler.c index 95c80befe6..866194d3a3 100644 --- a/bacula/src/dird/scheduler.c +++ b/bacula/src/dird/scheduler.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2000-2009 Free Software Foundation Europe e.V. + Copyright (C) 2000-2011 Free Software Foundation Europe e.V. The main author of Bacula is Kern Sibbald, with contributions from many others, a complete list can be found in the file AUTHORS. @@ -34,7 +34,6 @@ * * Kern Sibbald, May MM, major revision December MMIII * - * Version $Id$ */ #include "bacula.h" @@ -296,7 +295,7 @@ static void find_runs() nh_month = tm.tm_mon; nh_year = tm.tm_year; nh_wom = nh_mday / 7; - nh_woy = tm_woy(now); /* get week of year */ + nh_woy = tm_woy(next_hour); /* get week of year */ Dmsg7(dbglvl, "nh = %x: h=%d m=%d md=%d wd=%d wom=%d woy=%d\n", next_hour, nh_hour, nh_month, nh_mday, nh_wday, nh_wom, nh_woy); -- 2.39.5