mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-14 02:05:17 +00:00
[ADD/WIP] Congestion, basic ad-hoc commands
Woah, took me a while, eh? Next up, getting forms!
This commit is contained in:
parent
4007232716
commit
408888ef67
9 changed files with 911 additions and 14 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue