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 252042c + c5aa643 commit 337d0b5Copy full SHA for 337d0b5
1 file changed
flow/util/genMetrics.py
@@ -76,7 +76,7 @@ def extractTagFromFile(
76
count=False,
77
occurrence=-1,
78
defaultNotFound="N/A",
79
- t=str,
+ t=float,
80
required=True,
81
):
82
if jsonTag in jsonFile:
@@ -102,7 +102,7 @@ def extractTagFromFile(
102
value = parsedMetrics[occurrence]
103
value = value.strip()
104
try:
105
- jsonFile[jsonTag] = float(value)
+ jsonFile[jsonTag] = t(value)
106
except BaseException:
107
jsonFile[jsonTag] = str(value)
108
else:
0 commit comments