Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added more types to the switch statement to fix issue with using int6…
…4 values (https://golang.org/ref/spec#Numeric_types)
- Loading branch information
1 parent
a2d606f
commit e29880f
Showing
3 changed files
with
8 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,14 @@ | ||
--- | ||
meta: | ||
target_mem: 144 | ||
extras: (( grab meta.custom-extras || 0 )) | ||
|
||
jobs: | ||
- name: big_ones | ||
instances: (( calc "floor(meta.target_mem / 32)" )) | ||
|
||
- name: small_ones | ||
instances: (( calc "floor((meta.target_mem - jobs.big_ones.instances * 32) / 16)" )) | ||
|
||
- name: extra_ones | ||
instances: (( calc "2 + meta.extras" )) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -774,6 +774,8 @@ z: | |
name: big_ones | ||
- instances: 1 | ||
name: small_ones | ||
- instances: 2 | ||
name: extra_ones | ||
`) | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters