X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=time.c;h=c6a6287819e83b601ac0584db0b716e4dd6acec4;hp=108c0fcaab09e4b0a7d0bcfba8c6e690e83541de;hb=64b18e125219430fbfe69e61642dbcaa1861434e;hpb=ed8bd849b04b336b8f666a547aafa2661b0d8c89 diff --git a/time.c b/time.c index 108c0fca..c6a62878 100644 --- a/time.c +++ b/time.c @@ -17,7 +17,7 @@ unsigned long utime_since(struct timeval *s, struct timeval *e) usec += 1000000; } - sec *= (double) 1000000; + sec *= 1000000UL; return sec + usec; } @@ -41,8 +41,8 @@ unsigned long mtime_since(struct timeval *s, struct timeval *e) usec += 1000000; } - sec *= (double) 1000; - usec /= (double) 1000; + sec *= 1000UL; + usec /= 1000UL; return sec + usec; }