MCPcopy Create free account
hub / github.com/OpenOSINT/OpenOSINT / _fmt_duration

Function _fmt_duration

openosint/session_history.py:97–101  ·  view source on GitHub ↗
(seconds: int)

Source from the content-addressed store, hash-verified

95
96
97def _fmt_duration(seconds: int) -> str:
98 if seconds < 60:
99 return f"{seconds}s"
100 m, s = divmod(seconds, 60)
101 return f"{m}m{s:02d}s"
102
103
104def _fmt_targets(targets: list[str]) -> str:

Callers 2

display_history_tableFunction · 0.85
display_session_detailFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected