MCPcopy Create free account
hub / github.com/Niko1221/Strata / pipe_setting

Method pipe_setting

engine/src/prefill/prefill.cpp:3699–3699  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3697void Prefill::set_pipe(double value) { g_pipe = value; }
3698void Prefill::set_pipe_request(double value) { g_pipe_req = value; }
3699double Prefill::pipe_setting() { return pipe_value(); }
3700namespace {
3701// b/a in whole tokens: 0 for none (or NaN), at most 2^20 (llround of an infinity is undefined - `pipe=inf` parses)
3702int64_t ratio_tokens(double ratio) { return ratio > 0.0 ? (int64_t) std::llround(std::min(ratio, 1048576.0)) : 0; }

Callers

nothing calls this directly

Calls 1

pipe_valueFunction · 0.85

Tested by

no test coverage detected