~ubuntu-branches/ubuntu/precise/slurm-llnl/precise

« back to all changes in this revision

Viewing changes to src/slurmctld/reservation.c

  • Committer: Bazaar Package Importer
  • Author(s): Gennaro Oliva
  • Date: 2010-10-16 22:52:17 UTC
  • mfrom: (3.3.9 sid)
  • Revision ID: james.westby@ubuntu.com-20101016225217-4kr7l72wy6ssdnyd
Tags: 2.1.15-1
New upstream release 

Show diffs side-by-side

added added

removed removed

Lines of Context:
2865
2865
                    (resv_ptr->flags & RESERVE_FLAG_DAILY)) {
2866
2866
                        verbose("Advance reservation %s one day",
2867
2867
                        resv_ptr->name);
2868
 
                        resv_ptr->start_time += 24 * 60 * 60;
 
2868
                        resv_ptr->start_time = resv_ptr->start_time_first +
 
2869
                                               24 * 60 * 60;
2869
2870
                        resv_ptr->start_time_prev = resv_ptr->start_time;
2870
2871
                        resv_ptr->start_time_first = resv_ptr->start_time;
2871
2872
                        resv_ptr->end_time   += 24 * 60 * 60;
2878
2879
                    (resv_ptr->flags & RESERVE_FLAG_WEEKLY)) {
2879
2880
                        verbose("Advance reservation %s one week",
2880
2881
                                resv_ptr->name);
2881
 
                        resv_ptr->start_time += 7 * 24 * 60 * 60;
 
2882
                        resv_ptr->start_time = resv_ptr->start_time_first +
 
2883
                                               7 * 24 * 60 * 60;
2882
2884
                        resv_ptr->start_time_prev = resv_ptr->start_time;
2883
2885
                        resv_ptr->start_time_first = resv_ptr->start_time;
2884
2886
                        resv_ptr->end_time   += 7 * 24 * 60 * 60;