def row_of2

cswap-bend-cli@0.1.0.0 · profview.bend:92

import cswap-bend-cli@0.1.0.0/profview.bend as Profview
import Base
import cswap-bend-cli@0.1.0.0/profile.bend as P
import cswap-bend-cli@0.1.0.0/policy/safe.bend as SF
import cswap-bend-cli@0.1.0.0/daemon/config.bend as Cfg
import cswap-bend-cli@0.1.0.0/daemon/events.bend as Ev

92def row_of2(+p: P.Prof, +mark: String, +src: String, +e: Cfg.Cfg) -> Row:
93  match p:
94    case P.Prof{n, algo, th, ms, cd, iv}:
95      Row{mark, n, SF.name(algo), cell(th, Ev.pct_label(Cfg.cfg_threshold(e))), models_cell(ms, Cfg.cfg_models(e)), cell(cd, U32.show(Cfg.cfg_cooldown(e))), cell(iv, U32.show(Cfg.cfg_interval(e))), src}

Uses (13)

Used by (1)