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.
1 parent a396b6f commit 049aa3dCopy full SHA for 049aa3d
flow/util/genRuleFile.py
@@ -248,6 +248,13 @@
248
249
compare = ops[option['compare']]
250
251
+ if compare(rule_value, metrics[field]) and 'padding' in option.keys():
252
+ rule_value = metrics[field] * (1 + option['padding'] / 100)
253
+ if option['round_value'] and not isinf(rule_value):
254
+ rule_value = int(round(rule_value))
255
+ else:
256
+ rule_value = ceil(rule_value * 100) / 100.0
257
+
258
UPDATE = False
259
if args.tighten \
260
and rule_value != old_rule['value'] \
0 commit comments