Commit a414ac89 authored by Frédéric Escudié's avatar Frédéric Escudié
Browse files

Fix bug with elapsed time format.

parent aa94e764
......@@ -151,7 +151,7 @@ class JFlowServer (object):
"metadata": workflow.metadata,
"status": workflow.get_status(),
"elapsed_time": str(datetime.timedelta(seconds=int(str(elapsed_time).split(".")[0]))),
"elapsed_time": "-" if elapsed_time == "-" else str(datetime.timedelta(seconds=int(str(elapsed_time).split(".")[0]))),
"start_time": start_time,
"end_time": end_time,
"components": components}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment