Bug 29078: Resolve division by zero in touch_all scripts
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 22 Sep 2021 14:06:07 +0000 (14:06 +0000)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 8 Oct 2021 13:19:28 +0000 (09:19 -0400)
commit3e0d6100314c3c6536f6145110796ed91ceb2c62
tree90ab7bb6a8f3b44907de87a7fc826aead0214bac
parent41b8d6c1ffb4ea36dd6ccf5736bb6635dfa40bb9
Bug 29078: Resolve division by zero in touch_all scripts

Illegal division by zero at misc/maintenance/touch_all_biblios.pl line 102.

Trivial fix.
Funny that the percentage is not even shown without verbose flag ;)

Test plan:
Run misc/maintenance/touch_all_biblios.pl -where 'biblionumber<0'
You should now see:
Good: 0, Bad: 0 (of 0) in 0 seconds

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
misc/maintenance/touch_all_biblios.pl
misc/maintenance/touch_all_items.pl