def matches_ticks

cswap-bend-cli@0.1.0.0 · daemon/sess.bend:233

import cswap-bend-cli@0.1.0.0/daemon/sess.bend as Sess
import Base
import cswap-bend-cli@0.1.0.0/fs.bend as Fs

233def matches_ticks(+pid: U32, +want: String) -> IO(Bool):
234  IO.bind(Fs.Res(String), Bool, Fs.read_file("/proc/" ++ U32.show(pid) ++ "/stat"), r => IO.pure(Bool, ticks_match(want, stat_text(r))))

Uses (12)

Used by (1)