MCPcopy Create free account
hub / github.com/LucaCanali/PyLatencyMap / _fmt_value

Method _fmt_value

LatencyMap.py:328–335  ·  view source on GitHub ↗
(v: float)

Source from the content-addressed store, hash-verified

326
327 @staticmethod
328 def _fmt_value(v: float) -> str:
329 if v < 0:
330 return "0"
331 if v <= 9:
332 return f"{v:.1g}"
333 if v < 1_000_000:
334 return str(int(round(v)))
335 return f"{v:.2g}"
336
337 @staticmethod
338 def _bucket_ms_label(bucket_exp: int) -> str:

Callers 2

_print_footerMethod · 0.95
_print_heat_mapMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected