storj/storagenode/bandwidth
ethanadams ff6f1d1b32
storagenode: add in-memory tracking for bandwidth and disk usage (#2469)
* Add in-memory cache for bandwidth and space usage monitoring

* moved some structs around and added error handling for get piece size query

* added to existing bandwidth test.  fixed typo

* added test, updates from PR review, added monkit for new methods

* PR review updates. renamed space used methods

* changed bw cache so that only Add updates the cache and it only overwrites when the date moves forward

* moved bandwidth usage to bw and space usage to pieceinfodb

* fixed interface comment

* removed pointer from sync.Once
2019-07-08 20:33:50 -04:00
..
db_test.go storagenode: add in-memory tracking for bandwidth and disk usage (#2469) 2019-07-08 20:33:50 -04:00
usage.go storagenode: add in-memory tracking for bandwidth and disk usage (#2469) 2019-07-08 20:33:50 -04:00