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 <thomas.steur@googlemail.com>2014-11-05 08:04:43 +0300
committerThomas Steur <thomas.steur@googlemail.com>2014-11-07 03:25:59 +0300
commitac4d19763d4467fb848ebd84c6e3747e82edebab (patch)
treefbf762e6d221ef6e27b6028cdaced52bf387fdb5 /core/ArchiveProcessor.php
parentaaa2b72da730d2f86625273c036cdac0e3ffd113 (diff)
refs #6435 replace possible comma with a dot. Not 100% sure if that works yet
Diffstat (limited to 'core/ArchiveProcessor.php')
-rw-r--r--core/ArchiveProcessor.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/ArchiveProcessor.php b/core/ArchiveProcessor.php
index 71e90cde23..c93e913e0c 100644
--- a/core/ArchiveProcessor.php
+++ b/core/ArchiveProcessor.php
@@ -260,6 +260,7 @@ class ArchiveProcessor
$metrics = $this->getAggregatedNumericMetrics($columns, $operationToApply);
foreach($metrics as $column => $value) {
+ $value = Common::forceDotAsSeparatorForDecimalPoint($value);
$this->archiveWriter->insertRecord($column, $value);
}
// if asked for only one field to sum
@@ -314,6 +315,8 @@ class ArchiveProcessor
public function insertNumericRecord($name, $value)
{
$value = round($value, 2);
+ $value = Common::forceDotAsSeparatorForDecimalPoint($value);
+
$this->archiveWriter->insertRecord($name, $value);
}