Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Mirrors
biopet.biopet
Commits
ba3a17d4
Commit
ba3a17d4
authored
Apr 20, 2017
by
pjvan_thof
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Typo
parent
0ebc7e0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
biopet-core/src/main/scala/nl/lumc/sasc/biopet/core/CommandLineResources.scala
...scala/nl/lumc/sasc/biopet/core/CommandLineResources.scala
+1
-1
No files found.
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
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