[ADD/WIP] Congestion, basic ad-hoc commands

Woah, took me a while, eh? Next up, getting forms!
This commit is contained in:
LDA 2024-07-13 16:26:33 +02:00
commit 408888ef67
9 changed files with 911 additions and 14 deletions

View file

@ -13,6 +13,7 @@ CommandHead(CmdStats, cmd, argp)
ParseeCmdArg *args = argp;
ParseeData *data = args->data;
HashMap *event = args->event;
size_t congestion = ParseeCongestion();
size_t alloc = MemoryAllocated();
size_t kb = alloc >> 10;
size_t mb = kb >> 10;
@ -31,6 +32,9 @@ CommandHead(CmdStats, cmd, argp)
ReplySprintf("- Memory used: %d%s (reported by Cytoplasm)",
(int) min, unit
);
ReplySprintf("- Unprocessed stanzas: %d",
(int) congestion
);
ReplySprintf("- Source code and licensing information: %s",
REPOSITORY
);