mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-17 23:08:21 +00:00
Check for a non-standard property on request
This commit is contained in:
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user