Fix size calculation
This commit is contained in:
parent
3812aa6502
commit
59c5ad560b
1 changed files with 1 additions and 1 deletions
|
@ -186,7 +186,7 @@ class ContentManager(object):
|
||||||
for inner_path, content in self.contents.iteritems():
|
for inner_path, content in self.contents.iteritems():
|
||||||
if inner_path == ignore:
|
if inner_path == ignore:
|
||||||
continue
|
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():
|
for file, info in content.get("files", {}).iteritems():
|
||||||
total_size += info["size"]
|
total_size += info["size"]
|
||||||
return total_size
|
return total_size
|
||||||
|
|
Loading…
Reference in a new issue