mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-09 17:03:09 +00:00
Update codex/utils/statsummary.nim
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Signed-off-by: Ben Bierens <39762930+benbierens@users.noreply.github.com>
This commit is contained in:
parent
d70af86d2a
commit
8d73da4bcb
@ -36,7 +36,9 @@ proc observeStatSummary(st: StatSummary, value: float64) =
|
||||
st.max = value
|
||||
st.ravg = value
|
||||
|
||||
template observe*(statSummary: StatSummary | type IgnoredCollector, amount: int64 | float64 = 1) =
|
||||
template observe*(
|
||||
statSummary: StatSummary | type IgnoredCollector, amount: int64 | float64 = 1
|
||||
) =
|
||||
when defined(metrics) and statSummary is not IgnoredCollector:
|
||||
{.gcsafe.}:
|
||||
observeStatSummary(statSummary, amount.float64)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user