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:
34d48e8
)
Fix MSG_SYSTEM size packing
96/159896/3
author
Alexander Aksenov
<a.aksenov@samsung.com>
Mon, 13 Nov 2017 12:49:46 +0000
(15:49 +0300)
committer
Dmitry Kovalenko
<d.kovalenko@samsung.com>
Mon, 20 Nov 2017 11:01:51 +0000
(11:01 +0000)
Change-Id: I2976be1042ff65694f472488cd97890620a22925
Signed-off-by: Alexander Aksenov <a.aksenov@samsung.com>
daemon/sys_stat.c
patch
|
blob
|
history
diff --git
a/daemon/sys_stat.c
b/daemon/sys_stat.c
index
593803d
..
0ca25c3
100644
(file)
--- a/
daemon/sys_stat.c
+++ b/
daemon/sys_stat.c
@@
-2695,7
+2695,6
@@
struct msg_data_t *pack_system_info(struct system_info_t *sys_info)
return NULL;
}
- fill_data_msg_head(msg, NMSG_SYSTEM, 0, len);
p = msg->payload;
// CPU
@@
-2836,6
+2835,7
@@
struct msg_data_t *pack_system_info(struct system_info_t *sys_info)
pack_int32(p, sys_info->energy_per_device[i]);
for (i = 0; i < supported_devices_count; i++)
pack_int32(p, sys_info->app_energy_per_device[i]);
+ fill_data_msg_head(msg, NMSG_SYSTEM, 0, p - (char *)msg->payload);
return msg;
}