Commit 235f9f4f authored by Brad Kennedy's avatar Brad Kennedy
Browse files

Fixed a bug with hours handling

parent 11221f82
......@@ -108,7 +108,7 @@ if ~isempty(batch_config.time_limit)
case 'm'
time_span = time_span * 60;
case 'h'
time_span = time_span * 360;
time_span = time_span * 3600;
otherwise
error('End of time_limit field needs to be one of {s, m, h}');
end
......
......@@ -69,8 +69,8 @@ function out = format_scheduler(~, job_spec)
end
if ~isempty(job_spec.timeseconds)
time_span = fix(job_spec.timeseconds);
hours = fix(time_span / 360);
time_span = mod(time_span, 360);
hours = fix(time_span / 3600);
time_span = mod(time_span, 3600);
minutes = fix(time_span / 60);
time_span = mod(time_span, 60);
seconds = fix(time_span);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment