Skip to content

Commit

Permalink
find-sites: allow setting target_af
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Jan 9, 2022
1 parent c0feff3 commit 386ba6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/somalierpkg/findsites.nim
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ type vf = object
v: Variant
af: float32

const target_af = 0.48
var target_af = 0.48
if getEnv("SOMALIER_TARGET_AF") != "":
target_af = parseFloat(getEnv("SOMALIER_TARGET_AF"))

proc vf_by(a:vf, b:vf): int =
return cmp((a.af - target_af).abs, (b.af - target_af).abs)
Expand Down

0 comments on commit 386ba6d

Please sign in to comment.