mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-25 15:41:06 +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
|
||||
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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user