Commit 8f78ef03 authored by Maiterth, Matthias's avatar Maiterth, Matthias
Browse files

Fixed -t to be a duration and not a time-point. (e.g. -ff 2h -t 1h means fast...

Fixed -t to be a duration and not a time-point. (e.g. -ff 2h -t 1h means fast forward for 2 hours and simulate 1, not fast forward for 2 hours and end after hour 1, i.e. negative runtime.)
parent 70c7832b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -115,7 +115,7 @@ if args.replay:
    # Set number of timesteps based on the last job running which we assume
    # is the maximum value of submit_time + wall_time of all the jobs
    if args.time:
        timestep_end = convert_to_seconds(args.time)
        timestep_end = timestep_start + convert_to_seconds(args.time)
    elif not timestep_end:
        timestep_end = int(max(job['wall_time'] + job['start_time'] for job in jobs)) + 1