delta: avoid potential zero division

Found by Codex Security

Closes #20977
This commit is contained in:
Viktor Szakats 2026-03-18 10:54:27 +01:00
parent 578ee6b79b
commit c5daffe5f3
No known key found for this signature in database

View file

@ -169,7 +169,7 @@ printf "New command line options: %d (total %d)\n",
$noptions, $aoptions;
printf "Changes logged: %d\n", $numchanges;
printf "Bugfixes logged: %d (%.2f per day)\n",
$numbugfixes, $numbugfixes / $days;
$numbugfixes, $days ? $numbugfixes / $days : $numbugfixes;
printf "Added files: %d (total %d)\n",
$creates, $afiles;
printf "Deleted files: %d (delta: %d)\n", $deletes,