projects
/
platform
/
core
/
system
/
swap-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f97d6ac
)
[FIX] replay: us -> ns
author
Nikita Kalyazin
<n.kalyazin@samsung.com>
Wed, 10 Jul 2013 07:14:12 +0000
(11:14 +0400)
committer
Nikita Kalyazin
<n.kalyazin@samsung.com>
Wed, 10 Jul 2013 07:14:12 +0000
(11:14 +0400)
daemon/da_protocol.c
patch
|
blob
|
history
diff --git
a/daemon/da_protocol.c
b/daemon/da_protocol.c
index
1c2ae5d
..
4e55cc4
100644
(file)
--- a/
daemon/da_protocol.c
+++ b/
daemon/da_protocol.c
@@
-436,15
+436,17
@@
char *parse_user_space_inst(char *buf,
static char *parse_timeval(char *buf, struct timeval *tv)
{
char *p = buf;
+ uint32_t nsec = 0;
parse_deb("time\n");
// FIXME: is sec/usec order correct?
- p = parse_int32(p,
(uint32_t *)&tv->tv_u
sec);
+ p = parse_int32(p,
&n
sec);
if (!p) {
LOGE("usec parsing error\n");
return 0;
}
+ tv->tv_usec = nsec / 1000;
p = parse_int32(p, (uint32_t *)&tv->tv_sec);
if (!p) {