]> git.koha-community.org Git - koha.git/commit
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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 21 Oct 2021 03:46:19 +0000 (17:46 -1000)
commit0fe18806e6d3b5e36daf92c82ca92e2d5a854c8d
tree557c94fb9291b8001f8e50b77693e14ab23e172e
parentc810f906cd20f82c229c4fb2e2ee6ae1476703bd
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>
(cherry picked from commit 3e0d6100314c3c6536f6145110796ed91ceb2c62)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/maintenance/touch_all_biblios.pl
misc/maintenance/touch_all_items.pl