]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
no need to multiply by USEC
authorAlan T. DeKok <aland@freeradius.org>
Wed, 20 Feb 2019 20:00:27 +0000 (15:00 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 20 Feb 2019 20:00:27 +0000 (15:00 -0500)
src/lib/util/misc.c

index 3d7f000874d777ec84e8e1800513bd29f413ea13..87975b46b517f9bf6713698541fbd009a72c5cd1 100644 (file)
@@ -869,7 +869,7 @@ void fr_timeval_from_ms(struct timeval *out, uint64_t ms)
 void fr_timeval_from_usec(struct timeval *out, uint64_t usec)
 {
        out->tv_sec = usec / USEC;
-       out->tv_usec = (usec % USEC) * USEC;
+       out->tv_usec = usec % USEC;
 }
 
 /** Subtract one timeval from another