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:
authorTimo Besenreuther <timo.besenreuther@gmail.com>2014-12-02 16:58:28 +0300
committerTimo Besenreuther <timo.besenreuther@gmail.com>2014-12-02 16:58:28 +0300
commit815ef776f8e4cd710e510bbec61e3992db75a5b1 (patch)
tree7ef9f3e28c81c757cfbe7f0cb06bc4725a7c4012 /plugins/Actions/Reports
parente2c0d23cb3b28b6d80165f58140f98da5d147a08 (diff)
Format min and max generation time properly when they are added to custom reports and in the tooltip of the regular action reports.
E.g. for 24ms print "0.024s" instead of "00:00:00".
Diffstat (limited to 'plugins/Actions/Reports')
-rw-r--r--plugins/Actions/Reports/Base.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Actions/Reports/Base.php b/plugins/Actions/Reports/Base.php
index 08d5ac6f69..68bca741a3 100644
--- a/plugins/Actions/Reports/Base.php
+++ b/plugins/Actions/Reports/Base.php
@@ -72,8 +72,8 @@ abstract class Base extends \Piwik\Plugin\Report
return Piwik::translate("Actions_AvgGenerationTimeTooltip", array(
$hits,
"<br />",
- $formatter->getPrettyTimeFromSeconds($min),
- $formatter->getPrettyTimeFromSeconds($max)
+ $formatter->getPrettyTimeFromSeconds($min, true),
+ $formatter->getPrettyTimeFromSeconds($max, true)
));
};
$view->config->filters[] = array('ColumnCallbackAddMetadata',