From d4d87dbfe90a4e6502dfc57ee6bfe61b67435b7c Mon Sep 17 00:00:00 2001 From: Thomas Steur Date: Wed, 19 Oct 2016 12:29:12 +1300 Subject: [PATCH] trying to format percentage in scheduled reports --- plugins/API/ProcessedReport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/API/ProcessedReport.php b/plugins/API/ProcessedReport.php index 772ff911f45..2ea001fa094 100644 --- a/plugins/API/ProcessedReport.php +++ b/plugins/API/ProcessedReport.php @@ -879,10 +879,10 @@ public static function getPrettyValue(Formatter $formatter, $idSite, $columnName // 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 +}