mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix a warning in Csocket.cpp.
The patch was sent upstream too.
This commit is contained in:
@@ -658,7 +658,7 @@ void CCron::StartMaxCycles( double fTimeSequence, u_int iMaxCycles )
|
||||
{
|
||||
timeval tNow;
|
||||
m_tTimeSequence.tv_sec = (time_t) fTimeSequence;
|
||||
m_tTimeSequence.tv_usec = (suseconds_t) ((fTimeSequence - (time_t) fTimeSequence) * 1000000);
|
||||
m_tTimeSequence.tv_usec = (suseconds_t) ((fTimeSequence - (double) (time_t) fTimeSequence) * 1000000);
|
||||
gettimeofday( &tNow, NULL );
|
||||
timeradd( &tNow, &m_tTimeSequence, &m_tTime );
|
||||
m_iMaxCycles = iMaxCycles;
|
||||
|
||||
Reference in New Issue
Block a user