diff --git a/libtransmission/utils.c b/libtransmission/utils.c index ca42a927a..855d68d37 100644 --- a/libtransmission/utils.c +++ b/libtransmission/utils.c @@ -485,10 +485,10 @@ tr_timevalSet( struct timeval * setme, int seconds, int microseconds ) } void -tr_timerAdd( struct event * timer, int seconds, int milliseconds ) +tr_timerAdd( struct event * timer, int seconds, int microseconds ) { struct timeval tv; - tr_timevalSet( &tv, seconds, milliseconds ); + tr_timevalSet( &tv, seconds, microseconds ); event_add( timer, &tv ); } diff --git a/libtransmission/utils.h b/libtransmission/utils.h index f5ec2e57d..84c3001d3 100644 --- a/libtransmission/utils.h +++ b/libtransmission/utils.h @@ -254,7 +254,7 @@ void tr_timevalSet( struct timeval * setme, int seconds, int microseconds ); struct event; -void tr_timerAdd( struct event * timer, int seconds, int milliseconds ); +void tr_timerAdd( struct event * timer, int seconds, int microseconds ); /** @brief return the current date in milliseconds */