0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 07:23:53 +01:00

construct: Add conf item for output buffer size.

This commit is contained in:
Jason Volk 2022-08-05 13:30:16 -07:00
parent 651c5ea140
commit 2dc58b55d5
2 changed files with 9 additions and 1 deletions

View file

@ -33,6 +33,13 @@ construct::console::input_max
{ "default", long(64_KiB) },
};
decltype(construct::console::buffer_size)
construct::console::buffer_size
{
{ "name", "construct.console.buffer.size" },
{ "default", long(96_KiB) },
};
decltype(construct::console::ratelimit_sleep)
construct::console::ratelimit_sleep
{
@ -122,7 +129,7 @@ construct::console::active()
construct::console::console()
:outbuf
{
128_KiB
size_t(buffer_size)
}
,context
{

View file

@ -12,6 +12,7 @@ struct construct::console
{
static ircd::conf::item<size_t> stack_sz;
static ircd::conf::item<size_t> input_max;
static ircd::conf::item<size_t> buffer_size;
static ircd::conf::item<size_t> ratelimit_bytes;
static ircd::conf::item<ircd::milliseconds> ratelimit_sleep;