From 682cc8ff86cf3240876e9a6489181953201aab19 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Tue, 11 Oct 2016 06:49:50 +0900 Subject: [PATCH] Better size est. --- server/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/db.py b/server/db.py index 3625e88..74f04ff 100644 --- a/server/db.py +++ b/server/db.py @@ -490,7 +490,7 @@ class DB(object): '''Returns the approximate size of the cache, in MB.''' utxo_MB = ((len(self.utxo_cache.cache) + len(self.utxo_cache.db_cache)) * 100 // 1048576) - hist_MB = (len(self.history) * 48 + self.history_size * 4) // 1048576 + hist_MB = (len(self.history) * 48 + self.history_size * 20) // 1048576 if self.height % 200 == 0: self.logger.info('cache size at height {:,d}: ' 'UTXOs: {:,d} MB history: {:,d} MB'