Skip to main content

Module message_stats

Module message_stats 

Source
Expand description

What messages cost, counted from the jekt audit file: per agent per day, how many messages came in, how many started a turn or joined one, how many waited in a hold, how many replies were refused as saying nothing, and how many the agent sent (SPEC_CHEAPER_FLEET_MESSAGING_2026_10_30.md §7).

Structs§

DayStat
One agent’s messages on one UTC day.

Constants§

MAX_DAYS
The most days one ask covers; the file is read from its end back to the first of them.

Functions§

count
The days’ counts of entries newer than since_ms, oldest day first.
from_files
The last days days (at most MAX_DAYS) counted from the audit files at paths, which hold different lines (the shared file and a srv’s own).