mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 10:12:39 +01:00
ircd::info: Fix some informational timestamps.
This commit is contained in:
parent
5ac5a26f83
commit
f7bb1f9360
3 changed files with 2 additions and 11 deletions
|
@ -1318,9 +1318,8 @@ RB_DATECODE=`$DATECODE_CMD`
|
||||||
RB_DEFINE_UNQUOTED([DATECODE], [$RB_DATECODE], [UNIX epoch time at configuration time.])
|
RB_DEFINE_UNQUOTED([DATECODE], [$RB_DATECODE], [UNIX epoch time at configuration time.])
|
||||||
|
|
||||||
dnl TODO: XXX: These have better names than the above, rm previous eventually.
|
dnl TODO: XXX: These have better names than the above, rm previous eventually.
|
||||||
RB_DEFINE_UNQUOTED([TIME_CONFIGURED], [$RB_DATECODE], [UNIX epoch time at configuration time.])
|
|
||||||
RB_DEFINE_UNQUOTED([DATE_CONFIGURED], ["$RB_DATESTR"], [Convenience string of RB_TIME_CONFIGURED])
|
RB_DEFINE_UNQUOTED([DATE_CONFIGURED], ["$RB_DATESTR"], [Convenience string of RB_TIME_CONFIGURED])
|
||||||
CPPDEFINE([RB_TIME_COMPILED], [$(date +%s)])
|
CPPDEFINE([RB_TIME_CONFIGURED], [$(date +%s)])
|
||||||
|
|
||||||
dnl
|
dnl
|
||||||
dnl --with-custom-branding
|
dnl --with-custom-branding
|
||||||
|
|
|
@ -33,10 +33,9 @@ namespace ircd::info
|
||||||
extern const string_view branch;
|
extern const string_view branch;
|
||||||
extern const string_view commit;
|
extern const string_view commit;
|
||||||
extern const time_t configured_time;
|
extern const time_t configured_time;
|
||||||
extern const time_t compiled_time;
|
|
||||||
extern const time_t startup_time;
|
extern const time_t startup_time;
|
||||||
extern const string_view compiled;
|
|
||||||
extern const string_view configured;
|
extern const string_view configured;
|
||||||
|
extern const string_view compiled;
|
||||||
extern const string_view startup;
|
extern const string_view startup;
|
||||||
|
|
||||||
// System / platform information
|
// System / platform information
|
||||||
|
|
|
@ -151,12 +151,6 @@ ircd::info::configured_time
|
||||||
RB_TIME_CONFIGURED
|
RB_TIME_CONFIGURED
|
||||||
};
|
};
|
||||||
|
|
||||||
decltype(ircd::info::compiled_time)
|
|
||||||
ircd::info::compiled_time
|
|
||||||
{
|
|
||||||
RB_TIME_COMPILED
|
|
||||||
};
|
|
||||||
|
|
||||||
decltype(ircd::info::startup_time)
|
decltype(ircd::info::startup_time)
|
||||||
ircd::info::startup_time
|
ircd::info::startup_time
|
||||||
{
|
{
|
||||||
|
@ -172,7 +166,6 @@ ircd::info::configured
|
||||||
decltype(ircd::info::compiled)
|
decltype(ircd::info::compiled)
|
||||||
ircd::info::compiled
|
ircd::info::compiled
|
||||||
{
|
{
|
||||||
//ctime(&compiled_time)
|
|
||||||
__TIMESTAMP__
|
__TIMESTAMP__
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue