summaryrefslogtreecommitdiff
path: root/src/redis-cli.c
diff options
context:
space:
mode:
authordejun.xdj <dejun.xdj@alibaba-inc.com>2018-06-28 18:39:42 +0800
committerdejun.xdj <dejun.xdj@alibaba-inc.com>2018-06-28 18:39:42 +0800
commitbbd0ca952292979f54b5479d9397d1510f8bb84c (patch)
tree3454cc496c158e23d99dcd32483829723e608179 /src/redis-cli.c
parent7becf54e51ee226bf9cb3a4d5a297d0381f4b571 (diff)
downloadredis-bbd0ca952292979f54b5479d9397d1510f8bb84c.tar.gz
Fix code format issue.
Diffstat (limited to 'src/redis-cli.c')
-rw-r--r--src/redis-cli.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/redis-cli.c b/src/redis-cli.c
index cf03161fb..7926ab81f 100644
--- a/src/redis-cli.c
+++ b/src/redis-cli.c
@@ -4867,7 +4867,7 @@ static int clusterManagerCommandRebalance(int argc, char **argv) {
}
/* Calculate the slots balance for each node. It's the number of
* slots the node should lose (if positive) or gain (if negative)
- * in order to be balanced. */
+ * in order to be balanced. */
int threshold_reached = 0, total_balance = 0;
float threshold = config.cluster_manager_command.threshold;
i = 0;
@@ -4879,9 +4879,9 @@ static int clusterManagerCommandRebalance(int argc, char **argv) {
n->weight);
n->balance = n->slots_count - expected;
total_balance += n->balance;
- /* Compute the percentage of difference between the
- * expected number of slots and the real one, to see
- * if it's over the threshold specified by the user. */
+ /* Compute the percentage of difference between the
+ * expected number of slots and the real one, to see
+ * if it's over the threshold specified by the user. */
int over_threshold = 0;
if (threshold > 0) {
if (n->slots_count > 0) {