0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-05 13:28:54 +01:00

ircd::prof: Prevent kern time warning during static initialization.

This commit is contained in:
Jason Volk 2021-01-04 02:05:36 -08:00
parent 2c1f9e5162
commit e44316ba1e

View file

@ -113,6 +113,10 @@ noexcept
ircd::prof::syscall_usage_warning::~syscall_usage_warning()
noexcept
{
// Ignore this if we get here during static initialization before main()
if(unlikely(!ircd::ios::epoch()))
return;
const uint64_t total
{
timer.stopped?