Permalink
Browse files

MB-100: fix inconsistent indentation

Change-Id: I27e9365a637277485f693c4b85dff0c76e980da3
Reviewed-on: http://review.couchbase.org/19277
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Tested-by: Pavel Paulau <pavel.paulau@gmail.com>
  • Loading branch information...
1 parent 371a929 commit 83692397928b1935a1d164045f72eaa8c3b402bf @pavel-paulau pavel-paulau committed with pavel-paulau Aug 3, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 cluster_stats.py
  2. +2 −2 couchbase-cli
View
@@ -169,7 +169,7 @@ def run(self, accessor):
for node, vals in nodeStats.iteritems():
a, b = util.linreg(timestamps, vals)
if b < 1:
- trend.append((node, 0))
+ trend.append((node, 0))
else:
start_val = b
end_val = a * timestamps[-1] + b
@@ -247,7 +247,7 @@ def run(self, accessor):
num_error.append({"node":node, "value": (key, value)})
else:
if value > accessor["threshold"]:
- num_error.append({"node":node, "value": (key, value)})
+ num_error.append({"node":node, "value": (key, value)})
if len(num_error) > 0:
result[bucket] = {"error" : num_error}
return result
View
@@ -17,8 +17,8 @@ from usage import usage, short_usage
def main():
for x in sys.argv:
- if x in ('-h', '--help', 'help'):
- usage()
+ if x in ('-h', '--help', 'help'):
+ usage()
if len(sys.argv) <= 2:
short_usage()

0 comments on commit 8369239

Please sign in to comment.