projects
/
lightning.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76fbc75
)
Use smaller machines for small batches.
author
Tom Clegg <tom@tomclegg.ca>
Wed, 25 Nov 2020 21:25:14 +0000
(16:25 -0500)
committer
Tom Clegg <tom@tomclegg.ca>
Wed, 25 Nov 2020 21:25:14 +0000
(16:25 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>
vcf2fasta.go
patch
|
blob
|
history
diff --git
a/vcf2fasta.go
b/vcf2fasta.go
index 08eedf9446817a5d7afa8a0920c05fe86f28e530..cb43ee9567101dd7b653f078745d754c0fdec3d6 100644
(file)
--- a/
vcf2fasta.go
+++ b/
vcf2fasta.go
@@
-102,7
+102,8
@@
func (cmd *vcf2fasta) RunCommand(prog string, args []string, stdin io.Reader, st
if err != nil {
return 1
}
- if cmd.vcpus = len(cmd.batchArgs.Slice(infiles)) * 2; cmd.vcpus > 32 {
+ batchsize := (len(infiles) + cmd.batchArgs.batches - 1) / cmd.batchArgs.batches
+ if cmd.vcpus = batchsize * 2; cmd.vcpus > 32 {
cmd.vcpus = 32
}
}