Skip to content

Commit

Permalink
Log patch size
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Apr 10, 2016
1 parent 3a089ac commit 3bdde14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Site/Site.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,8 +424,8 @@ def publish(self, limit="default", inner_path="content.json", diffs={}):
random.shuffle(peers_more)
peers += peers_more[0:limit*2]

self.log.info("Publishing %s to %s/%s peers (connected: %s) diffs: %s..." % (
inner_path, limit, len(self.peers), num_connected_peers, diffs.keys()
self.log.info("Publishing %s to %s/%s peers (connected: %s) diffs: %s (%.2fk)..." % (
inner_path, limit, len(self.peers), num_connected_peers, diffs.keys(), float(len(str(diffs)))/1024
))

if not peers:
Expand Down

0 comments on commit 3bdde14

Please sign in to comment.