aboutsummaryrefslogtreecommitdiff
path: root/test-from-git
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-05 04:53:05 -0500
committerCraig Jennings <c@cjennings.net>2026-05-05 04:53:05 -0500
commita68f995fa1dfbb891611a982587dc3f07f467451 (patch)
tree7236233f5bcc1848e5176dac1afa3f1f4ea6112b /test-from-git
parent6b04aa2d5397cebca99e133ecc0853c8ca36bd56 (diff)
downloadorg-drill-a68f995fa1dfbb891611a982587dc3f07f467451.tar.gz
org-drill-a68f995fa1dfbb891611a982587dc3f07f467451.zip
fix: guard zero-divisor in org-drill-final-report overdue percentage
The warning branch divided 100*overdue by (dormant+due) without guarding the denominator. When both counts are zero — degenerate scopes (cram with no items collected, pure-failure session on empty queues) — the call hit arith-error before the warning even rendered. Wrapped the divisor with (max 1 ...). In the zero case the percentage reads as 0% rather than crashing the session wrap-up. Resolves a long-standing pre-existing TODO entry.
Diffstat (limited to 'test-from-git')
0 files changed, 0 insertions, 0 deletions