summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-01-22 14:56:36 -0800
committerSage Weil <sage@inktank.com>2013-01-22 15:10:22 -0800
commit0ee5ec7eae33125925276c559510a0390a7d4d74 (patch)
tree92cbdefd90892e9039d803de798cb29f2213bc4b
parent451cc00ab2260986e9a77c373a6f6483e471a99f (diff)
downloadceph-0ee5ec7eae33125925276c559510a0390a7d4d74.tar.gz
common/Throttle: fix modeline, whitespace
Signed-off-by: Sage Weil <sage@inktank.com>
-rw-r--r--src/common/Throttle.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/common/Throttle.h b/src/common/Throttle.h
index e1fbcb494c7..15964b247a9 100644
--- a/src/common/Throttle.h
+++ b/src/common/Throttle.h
@@ -1,3 +1,6 @@
+// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
+// vim: ts=8 sw=2 smarttab
+
#ifndef CEPH_THROTTLE_H
#define CEPH_THROTTLE_H
@@ -24,8 +27,8 @@ public:
private:
void _reset_max(int64_t m);
bool _should_wait(int64_t c) {
- int64_t m = max.read();
- int64_t cur = count.read();
+ int64_t m = max.read();
+ int64_t cur = count.read();
return
m &&
((c <= m && cur + c > m) || // normally stay under max