Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mirrors
biopet.biopet
Commits
ba3a17d4
Commit
ba3a17d4
authored
Apr 20, 2017
by
pjvan_thof
Browse files
Typo
parent
0ebc7e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/CommandLineResources.scala
View file @
ba3a17d4
...
...
@@ -121,7 +121,7 @@ trait CommandLineResources extends CommandLineFunction with Configurable {
protected
def
combineResources
(
commands
:
List
[
CommandLineResources
])
:
Unit
=
{
commands
.
foreach
(
_
.
setResources
())
nCoresRequest
=
Some
(
commands
.
map
(
_
.
threads
).
sum
+
threadsCorrection
)
nCoresRequest
.
map
(
x
=>
if
(
x
>
maxThreads
.
getOrElse
(
x
))
maxThreads
.
getOrElse
(
x
)
else
x
)
nCoresRequest
=
nCoresRequest
.
map
(
x
=>
if
(
x
>
maxThreads
.
getOrElse
(
x
))
maxThreads
.
getOrElse
(
x
)
else
x
)
_coreMemory
=
commands
.
map
(
cmd
=>
cmd
.
coreMemory
*
(
cmd
.
threads
.
toDouble
/
threads
.
toDouble
)).
sum
memoryLimit
=
Some
(
_coreMemory
*
threads
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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