Fix CX_SY_ZERODIVIDE dump in progress bar (#7036)
Some checks are pending
main-build / build-merged (push) Waiting to run
main-build / auto-tag (push) Waiting to run
main-build / auto-tag-artifact (push) Blocked by required conditions
main-build / coverage (push) Waiting to run

This commit is contained in:
Marc Bernard 2024-09-04 10:45:56 -04:00 committed by GitHub
parent 84656774fd
commit 019cfe8152
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,14 +40,18 @@ CLASS zcl_abapgit_progress IMPLEMENTATION.
DATA: lv_f TYPE f.
lv_f = ( iv_current / mv_total ) * 100.
rv_pct = lv_f.
TRY.
lv_f = ( iv_current / mv_total ) * 100.
rv_pct = lv_f.
IF rv_pct = 100.
rv_pct = 99.
ELSEIF rv_pct = 0.
rv_pct = 1.
ENDIF.
IF rv_pct = 100.
rv_pct = 99.
ELSEIF rv_pct = 0.
rv_pct = 1.
ENDIF.
CATCH cx_sy_zerodivide.
rv_pct = 0.
ENDTRY.
ENDMETHOD.