mirror of
https://github.com/Lacustat/Freewood-OctoWoW-Codex.git
synced 2026-10-30 09:30:53 +00:00
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:
co-authored by
Claude Sonnet 5.5
parent
55c0415450
commit
1e804ad876
@@ -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 }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user