diff --git a/lbry/blob/disk_space_manager.py b/lbry/blob/disk_space_manager.py index 3ce813064..1156b3e16 100644 --- a/lbry/blob/disk_space_manager.py +++ b/lbry/blob/disk_space_manager.py @@ -32,8 +32,9 @@ class DiskSpaceManager: else: storage_limit = self.config.blob_storage_limit*1024*1024 if self.config.blob_storage_limit else None if self.analytics: - # todo: add metrics for network case - asyncio.create_task(self.analytics.send_disk_space_used(space_used_bytes, storage_limit)) + asyncio.create_task( + self.analytics.send_disk_space_used(space_used_bytes, storage_limit, from_network_storage) + ) if not storage_limit: return 0 delete = [] diff --git a/lbry/extras/daemon/analytics.py b/lbry/extras/daemon/analytics.py index 868b14789..3db911bb7 100644 --- a/lbry/extras/daemon/analytics.py +++ b/lbry/extras/daemon/analytics.py @@ -170,11 +170,12 @@ class AnalyticsManager: }) ) - async def send_disk_space_used(self, storage_used, storage_limit): + async def send_disk_space_used(self, storage_used, storage_limit, is_from_network_quota): await self.track( self._event(DISK_SPACE, { 'used': storage_used, 'limit': storage_limit, + 'from_network_quota': is_from_network_quota }) ) diff --git a/lbry/wallet/__init__.pyc b/lbry/wallet/__init__.pyc deleted file mode 100644 index d4854844f..000000000 Binary files a/lbry/wallet/__init__.pyc and /dev/null differ