[PROTO] system info: total alloc size 32b -> 64b
authorNikita Kalyazin <n.kalyazin@samsung.com>
Sat, 30 Nov 2013 12:37:37 +0000 (16:37 +0400)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 4 Dec 2013 11:35:24 +0000 (11:35 +0000)
Change-Id: Id24495813fdf87b0a00c01178e6e4937e9475f27
Signed-off-by: Nikita Kalyazin <n.kalyazin@samsung.com>
daemon/da_data.c
daemon/da_protocol.h
daemon/sys_stat.c

index d152d35..b64b1c7 100644 (file)
@@ -62,7 +62,7 @@ int print_sys_info(struct system_info_t * sys_info)
        sys_info->shared_memory=0x20;
 
        sys_info->pss_memory=0x21;
-       sys_info->total_alloc_size=(uint32_t)0x22;
+       sys_info->total_alloc_size=(uint64_t)0x22;
        sys_info->system_memory_total=(uint64_t)0x23;
        sys_info->system_memory_used=(uint64_t)0x24;
        sys_info->total_used_drive=0x25;
index 573bcd8..ead76d1 100644 (file)
@@ -293,7 +293,7 @@ struct system_info_t {
        uint32_t resident_memory;
        uint32_t shared_memory;
        uint32_t pss_memory;
-       uint32_t total_alloc_size;
+       uint64_t total_alloc_size;
        uint64_t system_memory_total;
        uint64_t system_memory_used;
 
index 5ca6f6a..a5dd8f0 100644 (file)
@@ -2631,7 +2631,7 @@ struct msg_data_t *pack_system_info(struct system_info_t *sys_info)
                pack_int32(p, sys_info->resident_memory);
                pack_int32(p, sys_info->shared_memory);
                pack_int32(p, sys_info->pss_memory);
-               pack_int32(p, sys_info->total_alloc_size);
+               pack_int64(p, sys_info->total_alloc_size);
                pack_int64(p, sys_info->system_memory_total);
                pack_int64(p, sys_info->system_memory_used);
        } else {
@@ -2639,7 +2639,7 @@ struct msg_data_t *pack_system_info(struct system_info_t *sys_info)
                pack_int32(p, 0); /* pack resident_memory */
                pack_int32(p, 0); /* pack shared_memory */
                pack_int32(p, 0); /* pack pss_memory */
-               pack_int32(p, 0); /* pack total_alloc_size */
+               pack_int64(p, (uint64_t) 0); /* pack total_alloc_size */
                pack_int64(p, (uint64_t) 0); /* pack system_memory_total */
                pack_int64(p, (uint64_t) 0); /* pack system_memory_used */
        }