0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-16 06:51:08 +01:00

ircd::info: Fix initialization order for timestamps.

This commit is contained in:
Jason Volk 2020-04-14 13:24:41 -07:00
parent 868b515c67
commit 4fcb60eda7

View file

@ -787,6 +787,12 @@ ircd_name
PACKAGE_NAME PACKAGE_NAME
}; };
decltype(ircd::info::startup_time)
ircd::info::startup_time
{
std::time(nullptr)
};
decltype(ircd::info::startup) decltype(ircd::info::startup)
ircd::info::startup ircd::info::startup
{ {
@ -799,24 +805,18 @@ ircd::info::compiled
__TIMESTAMP__ __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) decltype(ircd::info::configured_time)
ircd::info::configured_time ircd::info::configured_time
{ {
RB_TIME_CONFIGURED RB_TIME_CONFIGURED
}; };
decltype(ircd::info::configured)
ircd::info::configured
{
rstrip(ctime(&configured_time), '\n')
};
decltype(ircd::info::commit) decltype(ircd::info::commit)
ircd::info::commit ircd::info::commit
{ {