projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
ed8bd84
)
Remove redundant double casts in time functions
author
Jens Axboe
<jens.axboe@oracle.com>
Tue, 27 Mar 2007 08:03:09 +0000
(10:03 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Tue, 27 Mar 2007 08:03:09 +0000
(10:03 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
time.c
patch
|
blob
|
blame
|
history
diff --git
a/time.c
b/time.c
index 108c0fcaab09e4b0a7d0bcfba8c6e690e83541de..c6a6287819e83b601ac0584db0b716e4dd6acec4 100644
(file)
--- 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;
}