mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-02 11:16:41 +00:00
Avoid use of RateAndTimeMixin in UploadResultsRendererMixin
This commit is contained in:
parent
00f70f6539
commit
91f8d939f8
@ -36,7 +36,7 @@ class RateAndTimeMixin(object):
|
|||||||
return abbreviate_rate(data)
|
return abbreviate_rate(data)
|
||||||
|
|
||||||
|
|
||||||
class UploadResultsRendererMixin(RateAndTimeMixin):
|
class UploadResultsRendererMixin(object):
|
||||||
# this requires a method named 'upload_results'
|
# this requires a method named 'upload_results'
|
||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
@ -383,7 +383,7 @@ class DownloadResultsRendererMixin(RateAndTimeMixin):
|
|||||||
l = T.ul()
|
l = T.ul()
|
||||||
for peerid in sorted(per_server.keys()):
|
for peerid in sorted(per_server.keys()):
|
||||||
peerid_s = idlib.shortnodeid_b2a(peerid)
|
peerid_s = idlib.shortnodeid_b2a(peerid)
|
||||||
times_s = ", ".join([self.render_time(None, t)
|
times_s = ", ".join([abbreviate_time(t)
|
||||||
for t in per_server[peerid]])
|
for t in per_server[peerid]])
|
||||||
l[T.li["[%s]: %s" % (peerid_s, times_s)]]
|
l[T.li["[%s]: %s" % (peerid_s, times_s)]]
|
||||||
return T.li["Per-Server Segment Fetch Response Times: ", l]
|
return T.li["Per-Server Segment Fetch Response Times: ", l]
|
||||||
|
Loading…
Reference in New Issue
Block a user