Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bucanl_eeglab_extensions
Batch Context
Commits
235f9f4f
Commit
235f9f4f
authored
Jul 19, 2017
by
Brad Kennedy
Browse files
Fixed a bug with hours handling
parent
11221f82
Changes
2
Hide whitespace changes
Inline
Side-by-side
batch/exec_func/@ef_base_driver/submit_line.m
View file @
235f9f4f
...
...
@@ -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
*
360
0
;
otherwise
error
(
'End of time_limit field needs to be one of {s, m, h}'
);
end
...
...
batch/exec_func/@ef_sbatch_driver/format_scheduler.m
View file @
235f9f4f
...
...
@@ -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
/
360
0
);
time_span
=
mod
(
time_span
,
360
0
);
minutes
=
fix
(
time_span
/
60
);
time_span
=
mod
(
time_span
,
60
);
seconds
=
fix
(
time_span
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment