Skip to content
Snippets Groups Projects
Commit 11afd8fb authored by ale's avatar ale
Browse files

keep track of total uploaded bytes

parent 3368322a
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,7 @@ class Uploader(threading.Thread):
if not result:
raise UploadError('server error')
self.stats.incr('uploaded_files')
self.stats.incr('uploaded_bytes', os.path.getsize(path))
log.info('successfully uploaded %s (%s)' % (path, sha1))
def _should_exclude(self, path):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment