output: avoid division by zero

This correction makes the shared networks alarming to work when all
available leases are used.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2014-11-14 21:48:22 +00:00
parent 0705b0c17f
commit 8e076fcc4f
2 changed files with 59 additions and 38 deletions

View file

@ -27,6 +27,7 @@ gnulib_modules="
fopen
getopt-gnu
inet_pton
isnan
langinfo
netinet_in
progname