projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3084d66
)
Fix microsecond vs. nanosecond confusion in my_time().
author
Lasse Collin
<lasse.collin@tukaani.org>
Sat, 14 Feb 2009 18:44:52 +0000
(20:44 +0200)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Sat, 14 Feb 2009 18:44:52 +0000
(20:44 +0200)
src/xz/message.c
patch
|
blob
|
history
diff --git
a/src/xz/message.c
b/src/xz/message.c
index
544572b
..
a89c5a4
100644
(file)
--- a/
src/xz/message.c
+++ b/
src/xz/message.c
@@
-144,7
+144,7
@@
my_time(void)
if (gettimeofday(&tv, NULL))
return -1.0;
- return (double)(tv.tv_sec) + (double)(tv.tv_usec) / 1.0e
9
;
+ return (double)(tv.tv_sec) + (double)(tv.tv_usec) / 1.0e
6
;
}