From 07e1085dccb55b75816faa2c2f4a66c42713f6cc Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Thu, 12 Sep 2013 17:27:10 -0400 Subject: More experimentation with multicast rate. --- node/BandwidthAccount.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'node/BandwidthAccount.hpp') diff --git a/node/BandwidthAccount.hpp b/node/BandwidthAccount.hpp index e8fc51d4..be180cfc 100644 --- a/node/BandwidthAccount.hpp +++ b/node/BandwidthAccount.hpp @@ -121,6 +121,15 @@ public: return false; } + /** + * @return Most recent balance without update + */ + inline uint32_t balance() const + throw() + { + return _balance; + } + private: double _lastTime; uint32_t _balance; -- cgit v1.2.3