LP#1711194: avoid division by zero errors user/gmcharlt/lp1711194-diag-improved
authorGalen Charlton <gmc@equinoxinitiative.org>
Fri, 18 Aug 2017 15:11:29 +0000 (11:11 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 18 Aug 2017 15:11:29 +0000 (11:11 -0400)
commit2a1c0525935475831a37bf7b9aa9c7dd4afba469
tree43e6db37bfe2b19d178f40721c5ecf55dafee1d9
parentf0a6655705e4afb55b927095a530c6eeb6d7c3c6
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>
bin/opensrf-perl.pl.in