]> git.evergreen-ils.org Git - working/OpenSRF.git/commit
LP#1711194: avoid division by zero errors
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 18 Aug 2017 15:11:29 +0000 (11:11 -0400)
committerBill Erickson <berickxx@gmail.com>
Fri, 18 Aug 2017 16:34:23 +0000 (12:34 -0400)
commit53e7f82b534eef2b513fe31bcb2a9c719a7ee746
tree43e6db37bfe2b19d178f40721c5ecf55dafee1d9
parentb198681669ed28a510fd0d18d3a89d4dd0837ebe
LP#1711194: avoid division by zero errors

Under some circumstances, osrf_control --diagnostic may not
be able to deduce the correct max_children setting for a service,
e.g., if it's run without --localhost on a system that doesn't
have a opensrf.xml config section specifying active apps for a
specific hostname. When that happens, just display the count
of running drones rather than displaying error messages about
undefined $dmax values and divisions by zero.

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
bin/opensrf-perl.pl.in