From 11afd8fbdf460b833e6470f1e99ccd995eb0225a Mon Sep 17 00:00:00 2001
From: ale <ale@incal.net>
Date: Sun, 26 Feb 2012 00:25:27 +0000
Subject: [PATCH] keep track of total uploaded bytes

---
 client/djrandom_client/upload.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/client/djrandom_client/upload.py b/client/djrandom_client/upload.py
index 391b679..7b2d5fb 100644
--- a/client/djrandom_client/upload.py
+++ b/client/djrandom_client/upload.py
@@ -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):
-- 
GitLab