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:
parent
2c1f9e5162
commit
e44316ba1e
1 changed files with 4 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue