Skip to content

Commit

Permalink
trying to format percentage in scheduled reports
Browse files Browse the repository at this point in the history
  • Loading branch information
tsteur committed Oct 18, 2016
1 parent b273724 commit d4d87db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/API/ProcessedReport.php
Expand Up @@ -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;
}
}
}

0 comments on commit d4d87db

Please sign in to comment.