From: Brian Warner Date: Fri, 30 Mar 2007 19:36:16 +0000 (-0700) Subject: uri.py: share counts are not base32-encoded X-Git-Url: https://git.rkrishnan.org/frontends/reliability?a=commitdiff_plain;h=2593ce42c3d9300ebd5ce72f5d66f31879eb65c3;p=tahoe-lafs%2Ftahoe-lafs.git uri.py: share counts are not base32-encoded --- diff --git a/src/allmydata/uri.py b/src/allmydata/uri.py index 4f2f0d9d..ed43eb7e 100644 --- a/src/allmydata/uri.py +++ b/src/allmydata/uri.py @@ -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