diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-12 17:27:10 -0400 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2013-09-12 17:27:10 -0400 |
| commit | 07e1085dccb55b75816faa2c2f4a66c42713f6cc (patch) | |
| tree | d7e32c1431acc855aaaa30c4847947c58c9eac11 /node/BandwidthAccount.hpp | |
| parent | 55e7ddba1eefdc819d4d0e3b0b6fd6e4ceb7ec43 (diff) | |
| download | infinitytier-07e1085dccb55b75816faa2c2f4a66c42713f6cc.tar.gz infinitytier-07e1085dccb55b75816faa2c2f4a66c42713f6cc.zip | |
More experimentation with multicast rate.
Diffstat (limited to 'node/BandwidthAccount.hpp')
| -rw-r--r-- | node/BandwidthAccount.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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; |
