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

Function progress_callback

webapp_modern.py:9168–9176  ·  view source on GitHub ↗
(event_type, data)

Source from the content-addressed store, hash-verified

9166 always equalled the total, Offline was always 0, and New/Lost only ever
9167 held the difference between two consecutive 15 second syncs.
9168
9169 active / inactive: the live presence verdict where there is one, the
9170 stored status otherwise (Ragnar's own address, another saved network,
9171 the first seconds after start).
9172 new: hosts first seen within TARGET_RECENT_HOURS.
9173 lost: hosts that were answering and went Offline within
9174 TARGET_RECENT_HOURS, and are still Offline.
9175 """
9176 presence = presence or {}
9177 now = now or datetime.now()
9178 wall_now = time.time()
9179 recent = timedelta(hours=TARGET_RECENT_HOURS)

Callers 1

deep_scan_hostMethod · 0.85

Calls 4

broadcast_status_updateFunction · 0.85
emitMethod · 0.80
errorMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected