0.1.141: Diagnose fuer empfangene Datensaetze (/fwcodex share)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016onJCSHLwhs9udhC9ZLzk9
This commit is contained in:
Lacustat
2026-10-27 12:14:13 +01:00
co-authored by Claude Sonnet 5.5
parent 55c0415450
commit 1e804ad876
3 changed files with 36 additions and 1 deletions
+20
View File
@@ -1313,6 +1313,26 @@ function Share.RemoteStats()
return senders, records
end
-- Diagnose (/fwcodex share): empfangene Datensaetze je Absender und Art (u o q i x t p z g h f), Dev-Status, eigene Datensaetze je Art
function Share.RemoteInfo()
local out = {}
for name, s in pairs(Remote()) do
local by = {}
for _, rec in pairs(s.rec) do by[rec.y or "?"] = (by[rec.y or "?"] or 0) + 1 end
out[#out + 1] = { name = name, dev = IsDevSender(name) and true or false, n = s.n or 0, np = s.np or 0, by = by }
end
return out
end
function Share.OwnInfo()
local by = {}
for _, e in ipairs(Share.Scan(false) or {}) do
local l = tostring(e.key):sub(1, 1)
by[l] = (by[l] or 0) + 1
end
return by
end
-- Mitgelieferte Startdaten (nur im Speicher, nie gespeichert und nie gesendet): Schluessel -> Datensatz
local builtin = { rec = {}, n = 0 }