def over_thr

cswap-bend-cli@0.1.0.0 · profile.bend:206

import cswap-bend-cli@0.1.0.0/profile.bend as Profile
import Base
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg

206def over_thr(+m: Maybe<&2, String>, +d: U32) -> U32:
207  match m:
208    case Some{t}:
209      Cfg.field_centi2(Cfg.centi(t), d, 5000, 9990)
210    case None{}:
211      d

Uses (5)

Used by (1)