mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 01:36:17 +00:00
parent
e9e8cb73fd
commit
99479226ed
@ -29,6 +29,7 @@ for catalog in sys.argv[1:]:
|
||||
sdmf_versions[si][0].add( ver )
|
||||
sdmf_versions[si][1].add( line )
|
||||
|
||||
del si
|
||||
chk_multiple_encodings = [(si,lines)
|
||||
for si,(encodings,lines) in chk_encodings.items()
|
||||
if len(encodings) > 1]
|
||||
|
@ -56,8 +56,7 @@ class DownloadNode:
|
||||
self._history = history
|
||||
self._download_status = download_status
|
||||
|
||||
k, N = self._verifycap.needed_shares, self._verifycap.total_shares
|
||||
self.share_hash_tree = IncompleteHashTree(N)
|
||||
self.share_hash_tree = IncompleteHashTree(self._verifycap.total_shares)
|
||||
|
||||
# we guess the segment size, so Segmentation can pull non-initial
|
||||
# segments in a single roundtrip. This populates
|
||||
|
@ -469,6 +469,7 @@ class Copier:
|
||||
name, source = self.get_source_info(ss)
|
||||
sources.append( (name, source) )
|
||||
|
||||
del name
|
||||
have_source_dirs = bool([s for (name,s) in sources
|
||||
if isinstance(s, (LocalDirectorySource,
|
||||
TahoeDirectorySource))])
|
||||
|
@ -144,6 +144,7 @@ class LeaseCheckingCrawler(ShareCrawler):
|
||||
self.increment(rec, "examined-buckets", 1)
|
||||
if sharetype:
|
||||
self.increment(rec, "examined-buckets-"+sharetype, 1)
|
||||
del wks
|
||||
|
||||
try:
|
||||
bucket_diskbytes = s.st_blocks * 512
|
||||
|
@ -52,6 +52,7 @@ if sys.argv[1] == "--stats":
|
||||
if name not in stats:
|
||||
stats[name] = 0
|
||||
stats[name] += float(value)
|
||||
del name
|
||||
if last_stats:
|
||||
delta = dict( [ (name,stats[name]-last_stats[name])
|
||||
for name in stats ] )
|
||||
|
@ -428,6 +428,7 @@ class DownloadStatusPage(DownloadResultsRendererMixin, rend.Page):
|
||||
rows[free_slot] = ev["finish_time"]
|
||||
ev["row"] = (groupnum, free_slot)
|
||||
new_events.append(ev)
|
||||
del groupnum
|
||||
# maybe also return serverid_to_group, groupnum_to_rows, and some
|
||||
# indication of the highest finish_time
|
||||
#
|
||||
|
Loading…
x
Reference in New Issue
Block a user