0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

ircd::stats: Allow a default value to be passed in the feature.

This commit is contained in:
Jason Volk 2019-07-11 13:11:12 -07:00
parent 7fdf87a21f
commit 13d733e89d
2 changed files with 3 additions and 3 deletions

View file

@ -133,6 +133,7 @@ libircd_la_SOURCES += crh.cc
libircd_la_SOURCES += fmt.cc
libircd_la_SOURCES += json.cc
libircd_la_SOURCES += conf.cc
libircd_la_SOURCES += stats.cc
libircd_la_SOURCES += logger.cc
libircd_la_SOURCES += magic.cc
libircd_la_SOURCES += sodium.cc
@ -142,7 +143,6 @@ libircd_la_SOURCES += rfc3986.cc
libircd_la_SOURCES += rfc1035.cc
libircd_la_SOURCES += http.cc
libircd_la_SOURCES += http2.cc
libircd_la_SOURCES += stats.cc
libircd_la_SOURCES += prof.cc
libircd_la_SOURCES += fs.cc
libircd_la_SOURCES += ios.cc

View file

@ -48,7 +48,7 @@ ircd::stats::item::item(const json::members &opts)
}
,val
{
0UL
feature.get<long>("default", 0L)
}
{
if(name.size() > NAME_MAX_LEN)
@ -63,7 +63,7 @@ ircd::stats::item::item(const json::members &opts)
if(!items.emplace(name, this).second)
throw error
{
"Conf item named '%s' already exists", name
"Stats item named '%s' already exists", name
};
}