mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-12 16:02:43 +00:00
Check for a non-standard property on request
This commit is contained in:
parent
267b89ae5b
commit
b49a3eaf3a
@ -583,7 +583,9 @@ class DeepCheckResultsRendererElement(Element, ResultsBase, ReloadMixin):
|
|||||||
|
|
||||||
@renderer
|
@renderer
|
||||||
def runtime(self, req, tag):
|
def runtime(self, req, tag):
|
||||||
runtime = time.time() - req.processing_started_timestamp
|
runtime = 'unknown'
|
||||||
|
if hasattr(req, 'processing_started_timestamp'):
|
||||||
|
runtime = time.time() - req.processing_started_timestamp
|
||||||
return tag("runtime: %s seconds" % runtime)
|
return tag("runtime: %s seconds" % runtime)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user