From 59c5ad560b5ee8b38e21a7bca38e5bbc2389fab4 Mon Sep 17 00:00:00 2001 From: HelloZeroNet Date: Wed, 20 Apr 2016 23:41:01 +0200 Subject: [PATCH] Fix size calculation --- src/Content/ContentManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py index 48aa1349..2ccfbfae 100644 --- a/src/Content/ContentManager.py +++ b/src/Content/ContentManager.py @@ -186,7 +186,7 @@ class ContentManager(object): for inner_path, content in self.contents.iteritems(): if inner_path == ignore: continue - total_size += len(json.dumps(inner_path)) # Size of content.json + total_size += self.site.storage.getSize(inner_path) # Size of content.json for file, info in content.get("files", {}).iteritems(): total_size += info["size"] return total_size