Browse files

Fix a warning in Csocket.cpp.

The patch was sent upstream too.
  • Loading branch information...
1 parent 165c9ed commit a88d9c7a7ff8f97f5a2edbe182760aac5aec161c @DarthGandalf DarthGandalf committed Jul 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Csocket.cpp
View
2 src/Csocket.cpp
@@ -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;

0 comments on commit a88d9c7

Please sign in to comment.