mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
ircd::info: Fix initialization order for timestamps.
This commit is contained in:
parent
868b515c67
commit
4fcb60eda7
1 changed files with 12 additions and 12 deletions
24
ircd/info.cc
24
ircd/info.cc
|
@ -787,6 +787,12 @@ ircd_name
|
|||
PACKAGE_NAME
|
||||
};
|
||||
|
||||
decltype(ircd::info::startup_time)
|
||||
ircd::info::startup_time
|
||||
{
|
||||
std::time(nullptr)
|
||||
};
|
||||
|
||||
decltype(ircd::info::startup)
|
||||
ircd::info::startup
|
||||
{
|
||||
|
@ -799,24 +805,18 @@ ircd::info::compiled
|
|||
__TIMESTAMP__
|
||||
};
|
||||
|
||||
decltype(ircd::info::configured)
|
||||
ircd::info::configured
|
||||
{
|
||||
rstrip(ctime(&configured_time), '\n')
|
||||
};
|
||||
|
||||
decltype(ircd::info::startup_time)
|
||||
ircd::info::startup_time
|
||||
{
|
||||
std::time(nullptr)
|
||||
};
|
||||
|
||||
decltype(ircd::info::configured_time)
|
||||
ircd::info::configured_time
|
||||
{
|
||||
RB_TIME_CONFIGURED
|
||||
};
|
||||
|
||||
decltype(ircd::info::configured)
|
||||
ircd::info::configured
|
||||
{
|
||||
rstrip(ctime(&configured_time), '\n')
|
||||
};
|
||||
|
||||
decltype(ircd::info::commit)
|
||||
ircd::info::commit
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue