mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Template user metric infinite recurse
.. the template user metric defined a count { } user metric
function that also used the builtin count() function, but
at runtime the user defined function is called causing an
infinite recurse.
.. it is right that user metrics can override builtin functions
but is very unfortunate that the count function is named this
way.
.. most users likely will never encounter this- but will cause a
SEGV stack overflow.
This commit is contained in:
@@ -1950,7 +1950,7 @@ CustomMetricsPage::addClicked()
|
||||
\n\
|
||||
# calculate metric value at end\n\
|
||||
value { mean(samples(POWER)); }\n\
|
||||
count { count(samples(POWER)); }\n\
|
||||
count { Duration; }\n\
|
||||
}";
|
||||
|
||||
EditUserMetricDialog editor(this, context, here);
|
||||
|
||||
Reference in New Issue
Block a user