We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5b6d973 + d3fbf28 commit 07bba78Copy full SHA for 07bba78
changelog.md
@@ -10,6 +10,7 @@
10
### Bug fixes
11
12
- Fixed forks with same source process name.
13
+- Fixed `inspect` issue when tasks took more than a day in duration.
14
15
## 1.3.1
16
flowcraft/generator/inspect.py
@@ -338,7 +338,10 @@ def _hms(s):
338
if s.endswith("ms"):
339
return float(s.rstrip("ms")) / 1000
340
341
- fields = list(map(float, re.split("[hms]", s)[:-1]))
+ fields = list(map(float, re.split("[dhms]", s)[:-1]))
342
+ if len(fields) == 4:
343
+ return fields[0] * 24 * 3600 + fields[1] * 3600 + fields[2] * 60 +\
344
+ fields[3]
345
if len(fields) == 3:
346
return fields[0] * 3600 + fields[1] * 60 + fields[2]
347
elif len(fields) == 2:
0 commit comments