aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/component-measures/utils.js
diff options
context:
space:
mode:
authorGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-05-12 12:47:28 +0200
committerGrégoire Aubert <gregoire.aubert@sonarsource.com>2017-05-12 16:14:43 +0200
commit218182c4c4d7ebbbf41e9cbfd8d7688cd411a82f (patch)
treebd6a2608fbb86affa7f7a095043f3b940c15af06 /server/sonar-web/src/main/js/apps/component-measures/utils.js
parentfff73903632519aa70356279a77e8cae2e50db05 (diff)
downloadsonarqube-218182c4c4d7ebbbf41e9cbfd8d7688cd411a82f.tar.gz
sonarqube-218182c4c4d7ebbbf41e9cbfd8d7688cd411a82f.zip
SONAR-9026 Increase precision for coverage QG conditions
Diffstat (limited to 'server/sonar-web/src/main/js/apps/component-measures/utils.js')
-rw-r--r--server/sonar-web/src/main/js/apps/component-measures/utils.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/component-measures/utils.js b/server/sonar-web/src/main/js/apps/component-measures/utils.js
index 6b3abc7eda4..91c3e3f92b2 100644
--- a/server/sonar-web/src/main/js/apps/component-measures/utils.js
+++ b/server/sonar-web/src/main/js/apps/component-measures/utils.js
@@ -62,11 +62,11 @@ export function getSingleLeakValue(measures, periodIndex = 1) {
return period ? period.value : null;
}
-export function formatLeak(value, metric) {
+export function formatLeak(value, metric, options) {
if (isDiffMetric(metric)) {
- return formatMeasure(value, metric.type);
+ return formatMeasure(value, metric.type, options);
} else {
- return formatMeasureVariation(value, metric.type);
+ return formatMeasureVariation(value, metric.type, options);
}
}