ctdb-tools-ctdb: scriptstatus should not count disabled scripts
commitc1deb87fb78b84a551ad8dc1004247d8a836f9bc
authorMartin Schwenke <martin@meltin.net>
Tue, 6 May 2014 01:08:57 +0000 (6 11:08 +1000)
committerAmitay Isaacs <amitay@samba.org>
Wed, 28 May 2014 00:27:48 +0000 (28 02:27 +0200)
treeb5a6c9621e2c4f23cab2dcb66ed9ff80bff8d17a
parentf1d4b274eee4e36731c37dc218b3c4aec8842c87
ctdb-tools-ctdb: scriptstatus should not count disabled scripts

script_status->num_scripts is used as the count in this message:

  "%d scripts were executed last %s cycle\n"

However, script_status->num_scripts includes disabled scripts, which
are never actually executed.

Instead, count the number of scripts that aren't disabled and make the
message print that.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Wed May 28 02:27:48 CEST 2014 on sn-devel-104
ctdb/tools/ctdb.c