ctdb-scripts: Avoid dividing by zero in memory calculation
authorJose A. Rivera <jarrpa@samba.org>
Thu, 21 Apr 2016 18:09:21 +0000 (13:09 -0500)
committerMartin Schwenke <martins@samba.org>
Sat, 23 Apr 2016 21:55:14 +0000 (23:55 +0200)
commitbf3f22315a281fb44a5cd9b075b7915138145d6e
treef05a11569c988d230c8ecc3a3b1e1d7cc7cf2e52
parentac7974a64e9bee8caf9e418f46e6570eb857c1bd
ctdb-scripts: Avoid dividing by zero in memory calculation

Don't do a percentage calculation for either memtotal or swaptotal if they
are zero.

Signed-off-by: Jose A. Rivera <jarrpa@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/config/events.d/05.system