]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
uri.py: share counts are not base32-encoded
authorBrian Warner <warner@allmydata.com>
Fri, 30 Mar 2007 19:36:16 +0000 (12:36 -0700)
committerBrian Warner <warner@allmydata.com>
Fri, 30 Mar 2007 19:36:16 +0000 (12:36 -0700)
src/allmydata/uri.py

index 4f2f0d9d66c774911c86402b0589a609598e8048..ed43eb7eca734021c3fd64b6aa31e9a6a6cb2aa6 100644 (file)
@@ -21,8 +21,8 @@ def unpack_uri(uri):
     header, codec_name, codec_params, verifierid_s, roothash_s, needed_shares_s, total_shares_s, size_s, segment_size_s = uri.split(":")
     verifierid = idlib.a2b(verifierid_s)
     roothash = idlib.a2b(roothash_s)
-    needed_shares = idlib.a2b(needed_shares_s)
-    total_shares = idlib.a2b(total_shares_s)
+    needed_shares = int(needed_shares_s)
+    total_shares = int(total_shares_s)
     size = int(size_s)
     segment_size = int(segment_size_s)
     return codec_name, codec_params, verifierid, roothash, needed_shares, total_shares, size, segment_size