diff options
author | pr.jung <pr.jung@samsung.com> | 2016-12-06 14:45:31 +0900 |
---|---|---|
committer | pr.jung <pr.jung@samsung.com> | 2016-12-06 14:45:31 +0900 |
commit | a9df1396af6d077b25f30236341c06c7c062ffcb (patch) | |
tree | faacb699f73fcc4d1642e603bdaff22733f686d9 | |
parent | 08537e682e0e75979e57c26c0396241fe83abdc0 (diff) | |
download | deviced-a9df1396af6d077b25f30236341c06c7c062ffcb.tar.gz deviced-a9df1396af6d077b25f30236341c06c7c062ffcb.tar.bz2 deviced-a9df1396af6d077b25f30236341c06c7c062ffcb.zip |
block: Modify wrong typecasting
Change-Id: I89e12081b92ed4180cf16f156fc56ac94a3068df
Signed-off-by: pr.jung <pr.jung@samsung.com>
-rwxr-xr-x | src/block/storage.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/block/storage.c b/src/block/storage.c index c5fb2690..62b0cb95 100755 --- a/src/block/storage.c +++ b/src/block/storage.c @@ -143,6 +143,8 @@ static void storage_status_broadcast(struct storage_config_info *info, double to info->current_noti_level = MEMNOTI_LEVEL_FULL; status = MEMNOTI_ENABLE; memnoti_send_broadcast(SIGNAL_LOWMEM_FULL, status); + _I("current level %4.4lf w:%4.4lf c:%4.4lf f:%4.4lf", + level, info->warning_level, info->critical_level, info->full_level); return; } @@ -154,6 +156,8 @@ static void storage_status_broadcast(struct storage_config_info *info, double to info->current_noti_level = MEMNOTI_LEVEL_CRITICAL; status = MEMNOTI_ENABLE; memnoti_send_broadcast(SIGNAL_LOWMEM_STATE, status); + _I("current level %4.4lf w:%4.4lf c:%4.4lf f:%4.4lf", + level, info->warning_level, info->critical_level, info->full_level); return; } @@ -201,13 +205,13 @@ static void init_storage_config_info(const char *path, struct storage_config_inf get_storage_status(path, &s); - dTotal = (double)(s.f_frsize * s.f_blocks); - dAvail = (double)(s.f_bsize * s.f_bavail); + dTotal = (double)s.f_frsize * s.f_blocks; + dAvail = (double)s.f_bsize * s.f_bavail; info->full_level += (MEMORY_MEGABYTE_VALUE/dTotal)*100; - _I("%s t: %4.0lf a: %4.0lf(%4.2lf) c:%4.4lf f:%4.4lf", - path, dTotal, dAvail, (dAvail*100/dTotal), info->critical_level, info->full_level); + _I("%s t: %4.0lf a: %4.0lf(%4.2lf) w:%4.4lf c:%4.4lf f:%4.4lf", + path, dTotal, dAvail, (dAvail*100/dTotal), info->warning_level, info->critical_level, info->full_level); } static void check_internal_storage_popup(struct storage_config_info *info) |