Searched refs:percent_now (Results 1 – 2 of 2) sorted by relevance
68 uint32_t percent_pre = 0, percent_now = 0; in dm_fota_perform_sync() local132 percent_now = (file_downloaded * 100) / file_size; in dm_fota_perform_sync()139 if ((((percent_now - percent_pre) > 5) && in dm_fota_perform_sync()141 (percent_now >= IOT_OTAP_FETCH_PERCENTAGE_MAX)) { in dm_fota_perform_sync()142 IOT_OTA_ReportProgress(ota_handle, percent_now, NULL); in dm_fota_perform_sync()143 percent_pre = percent_now; in dm_fota_perform_sync()
120 uint32_t percent_pre = 0, percent_now = 0; in dm_cota_perform_sync() local167 percent_now = (file_downloaded * 100) / file_size; in dm_cota_perform_sync()174 if ((((percent_now - percent_pre) > 5) && in dm_cota_perform_sync()176 (percent_now >= IOT_OTAP_FETCH_PERCENTAGE_MAX)) { in dm_cota_perform_sync()177 IOT_OTA_ReportProgress(ota_handle, percent_now, NULL); in dm_cota_perform_sync()178 percent_pre = percent_now; in dm_cota_perform_sync()
Completed in 3 milliseconds