diff options
-rw-r--r-- | packaging/ug-setting-manage-applications-efl.spec | 2 | ||||
-rwxr-xr-x | view/src/mgr-app-view-app-info.c | 9 |
2 files changed, 7 insertions, 4 deletions
diff --git a/packaging/ug-setting-manage-applications-efl.spec b/packaging/ug-setting-manage-applications-efl.spec index 82d310f..d1d27e5 100644 --- a/packaging/ug-setting-manage-applications-efl.spec +++ b/packaging/ug-setting-manage-applications-efl.spec @@ -4,7 +4,7 @@ Name: ug-setting-manage-applications-efl Summary: Manage Application package -Version: 0.0.25-1 +Version: 0.0.26 Release: 0 Group: TO_BE/FILLED_IN License: Flora Software License diff --git a/view/src/mgr-app-view-app-info.c b/view/src/mgr-app-view-app-info.c index d807445..62e1bb2 100755 --- a/view/src/mgr-app-view-app-info.c +++ b/view/src/mgr-app-view-app-info.c @@ -641,11 +641,11 @@ static char *__get_formated_size(float size) if (size < NUM_KILO) { snprintf(buf, MAX_NAME_LEN, "%d %s", (int)size, dgettext(PACKAGE, "IDS_ST_BODY_BYTES")); } else if (size >= NUM_KILO && size < NUM_MEGA) { - snprintf(buf, MAX_NAME_LEN, "%'.2f %s", size / NUM_KILO, dgettext(PACKAGE, "IDS_ST_BODY_KB")); + snprintf(buf, MAX_NAME_LEN, "%'.2f %s", size / (NUM_KILO), dgettext(PACKAGE, "IDS_ST_BODY_KB")); } else if (size >= NUM_MEGA && size < NUM_GIGA) { - snprintf(buf, MAX_NAME_LEN, "%'.2f %s", size / NUM_MEGA, dgettext(PACKAGE, "IDS_ST_BODY_MB")); + snprintf(buf, MAX_NAME_LEN, "%'.2f %s", size / (NUM_MEGA), dgettext(PACKAGE, "IDS_ST_BODY_MB")); } else { - snprintf(buf, MAX_NAME_LEN, "%'.2f %s", size / NUM_GIGA, dgettext(PACKAGE, "IDS_ST_BODY_GB")); + snprintf(buf, MAX_NAME_LEN, "%'.2f %s", size / (NUM_GIGA), dgettext(PACKAGE, "IDS_ST_BODY_GB")); } MGR_APP_END(); @@ -1082,6 +1082,7 @@ static Evas_Object *__create_genlist_app_info(Evas_Object *parent, void *data) buf = pkgmgr_info_get_string(pkg_info, STR_DATA_SIZE); if (buf) { + MGR_APP_DEBUG_ERR("data size: %s", buf); app_info->data_size = atoi(buf); MGR_APP_MEM_FREE(buf); } else { @@ -1090,7 +1091,9 @@ static Evas_Object *__create_genlist_app_info(Evas_Object *parent, void *data) buf = NULL; buf = pkgmgr_info_get_string(pkg_info, STR_INSTALLED_SIZE); + if (buf) { + MGR_APP_DEBUG_ERR("installed size: %s", buf); app_info->total_size = atoi(buf); MGR_APP_MEM_FREE(buf); } else { |