]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
Minorly fix outbytes calculation in client
authorBrandon Low <lostlogic@lostlogicx.com>
Sat, 22 Jan 2011 16:28:04 +0000 (08:28 -0800)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 26 Jan 2011 03:49:06 +0000 (19:49 -0800)
Signed-off-by: Brandon Low <lostlogic@lostlogicx.com>
lib/bup/client.py

index 6354b91a6eb0099378cb22b2cd344eb6c300451e..01287ef299cefc18c6ac9f9eeb14ec3e49049213 100644 (file)
@@ -323,7 +323,7 @@ class PackWriter_Remote(git.PackWriter):
                     self.file, outbuf, self._bwcount, self._bwtime)
         except IOError, e:
             raise ClientError, e, sys.exc_info()[2]
-        self.outbytes += len(data) - 20 - 4 # Don't count sha1+crc
+        self.outbytes += len(data)
         self.count += 1
 
         if self.file.has_input():