ctdb-daemon: Divide by 2 when calculating hop count bucket
authorMartin Schwenke <martin@meltin.net>
Thu, 15 Nov 2018 02:58:53 +0000 (13:58 +1100)
committerAmitay Isaacs <amitay@samba.org>
Tue, 18 Dec 2018 01:02:03 +0000 (02:02 +0100)
commit93284ed0321ff96a97d4b56deedbca62c5852c06
treec944675e87f37dc5f7c04defe0d6865c504edce8
parentb77fae3281a06a99a7e298378a68d273ee28355c
ctdb-daemon: Divide by 2 when calculating hop count bucket

This provides finer resolution while still maintaining a reasonable
maximum.  In this case the top bucket contains any hop counts
>= 16384, compared to the current situation where the top bucket contains
hop counts >= 268435456.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
ctdb/doc/ctdb-statistics.7.xml
ctdb/server/ctdb_call.c