Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <tsteur@users.noreply.github.com>2016-10-20 03:33:04 +0300
committerMatthieu Aubry <mattab@users.noreply.github.com>2016-10-20 03:33:04 +0300
commit3ff76c93a251bfb0137540caaf04b9566d9a76f4 (patch)
tree417c853eaec0cf85bbbe550bfc664b7eeb2ce9b4
parentf6947878aa3ac56129d31e7d9827c9d5e69da546 (diff)
trying to format percentage in scheduled reports (#10766)
-rw-r--r--plugins/API/ProcessedReport.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/API/ProcessedReport.php b/plugins/API/ProcessedReport.php
index 772ff911f4..2ea001fa09 100644
--- a/plugins/API/ProcessedReport.php
+++ b/plugins/API/ProcessedReport.php
@@ -879,10 +879,10 @@ class ProcessedReport
// Add % symbol to rates
if (strpos($columnName, '_rate') !== false) {
if (strpos($value, "%") === false) {
- return $value . "%";
+ return (100 * $value) . "%";
}
}
return $value;
}
-} \ No newline at end of file
+}