block: Modify wrong typecasting 52/102552/1
authorpr.jung <pr.jung@samsung.com>
Tue, 6 Dec 2016 05:45:31 +0000 (14:45 +0900)
committerpr.jung <pr.jung@samsung.com>
Tue, 6 Dec 2016 05:45:31 +0000 (14:45 +0900)
Change-Id: I89e12081b92ed4180cf16f156fc56ac94a3068df
Signed-off-by: pr.jung <pr.jung@samsung.com>
src/block/storage.c

index c5fb269..62b0cb9 100755 (executable)
@@ -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)