MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _format_bytes

Method _format_bytes

traffic_analyzer.py:1562–1568  ·  view source on GitHub ↗

Convert bytes to human readable format

(self, bytes_val: int)

Source from the content-addressed store, hash-verified

1560 'dst_ips': sorted(record.dst_ips)[:10],
1561 'dst_ports': sorted(record.dst_ports),
1562 },
1563 )
1564
1565 def _on_irc_event(self, session, message) -> None:
1566 """Callback: a notable IRC event was parsed off the wire."""
1567 cmd = message.command
1568 # The first NICK or JOIN on a session is enough to raise the flag —
1569 # IRC on the wire in 2026 is almost always worth investigating.
1570 if cmd == 'JOIN':
1571 channels = ', '.join(sorted(session.channels)[:5])

Callers 1

get_summaryMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected