From: dyamy-lee Date: Fri, 6 Nov 2020 04:09:55 +0000 (+0900) Subject: hot fix : rw-update-ani-common : resolve integers' divide problem which can't get... X-Git-Tag: submit/tizen/20201106.052508^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F11%2F247011%2F1;p=profile%2Fcommon%2Fapps%2Fnative%2Ffirmware-update-system-ui.git hot fix : rw-update-ani-common : resolve integers' divide problem which can't get float result for percent Change-Id: I90f380dd39610bd690c05da6e5c5755a470d91b2 --- diff --git a/rw-update-ani-common/fota_gr_direct_rw_common.c b/rw-update-ani-common/fota_gr_direct_rw_common.c index 6bff6bb..2828c24 100644 --- a/rw-update-ani-common/fota_gr_direct_rw_common.c +++ b/rw-update-ani-common/fota_gr_direct_rw_common.c @@ -457,7 +457,7 @@ void fota_gr_direct_rw_update_progress(void) if (total == 0) s_percent_to_draw = 0; else - s_percent_to_draw = 100 * (progress / total); + s_percent_to_draw = 100 * ((float)progress / total); if (s_saved_percent < s_percent_to_draw) { LOG("s_saved_percent %d , s_percent_to_draw %d \n", s_saved_percent, s_percent_to_draw);