mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 15:33:54 +01:00
construct: Add conf item for output buffer size.
This commit is contained in:
parent
651c5ea140
commit
2dc58b55d5
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue