Skip to content

Commit

Permalink
update txn expression not regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
harp-intel committed Nov 25, 2024
1 parent edee0a4 commit 8ad64e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/metrics/metric_defs.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func ConfigureMetrics(metrics []MetricDefinition, evaluatorFunctions map[string]
metrics[metricIdx].Expression = strings.ReplaceAll(metrics[metricIdx].Expression, "[CONST_THREAD_COUNT]", threadsPerCore)
// abbreviate event names
metrics[metricIdx].Expression = abbreviateEventName(metrics[metricIdx].Expression)
metrics[metricIdx].Expression = abbreviateEventName(metrics[metricIdx].ExpressionTxn)
metrics[metricIdx].ExpressionTxn = abbreviateEventName(metrics[metricIdx].ExpressionTxn)
// get a list of the variables in the expression
metrics[metricIdx].Variables = make(map[string]int)
expressionIdx := 0
Expand Down

0 comments on commit 8ad64e0

Please sign in to comment.