mirror of
https://github.com/anope/anope.git
synced 2026-07-02 11:26:38 +02:00
Use clock_gettime if it is available.
This commit is contained in:
@@ -76,7 +76,7 @@ void SocketEngine::Process()
|
||||
events.resize(events.size() * 2);
|
||||
|
||||
int total = epoll_wait(EngineHandle, &events.front(), events.size(), Config->ReadTimeout * 1000);
|
||||
Anope::CurTime = time(NULL);
|
||||
Anope::UpdateTime();
|
||||
|
||||
/* EINTR can be given if the read timeout expires */
|
||||
if (total == -1)
|
||||
|
||||
Reference in New Issue
Block a user