summaryrefslogtreecommitdiff
path: root/node/RateLimiter.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'node/RateLimiter.hpp')
-rw-r--r--node/RateLimiter.hpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/node/RateLimiter.hpp b/node/RateLimiter.hpp
index 69d47d0a..e5403717 100644
--- a/node/RateLimiter.hpp
+++ b/node/RateLimiter.hpp
@@ -135,6 +135,15 @@ public:
return allow;
}
+ /**
+ * @return Current balance
+ */
+ inline double balance() const
+ throw()
+ {
+ return _balance;
+ }
+
private:
double _lastTime;
double _balance;