diff options
author | benakamoorthi <benaka.moorthi@gmail.com> | 2012-08-03 06:24:30 +0400 |
---|---|---|
committer | benakamoorthi <benaka.moorthi@gmail.com> | 2012-08-03 06:24:30 +0400 |
commit | b60aad14f591f4929fbbedd490b8e92c7d5d148e (patch) | |
tree | 1b2f4bd87eab292e071e91f4e760ade91b286ed7 /core/DataTable/Filter/BeautifyTimeRangeLabels.php | |
parent | ac3b87b65f21b30c9548ac6c497bcafbd42962e2 (diff) |
Fixes #3282, change duration ranges for number of visits per visit duration report and fixed bug in BeautifyTimeRangeLabels where upper bound was incorrect.
git-svn-id: http://dev.piwik.org/svn/trunk@6660 59fd770c-687e-43c8-a1e3-f5a4ff64c105
Diffstat (limited to 'core/DataTable/Filter/BeautifyTimeRangeLabels.php')
-rw-r--r-- | core/DataTable/Filter/BeautifyTimeRangeLabels.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/DataTable/Filter/BeautifyTimeRangeLabels.php b/core/DataTable/Filter/BeautifyTimeRangeLabels.php index 50d9105d6c..803f2c6e23 100644 --- a/core/DataTable/Filter/BeautifyTimeRangeLabels.php +++ b/core/DataTable/Filter/BeautifyTimeRangeLabels.php @@ -119,7 +119,8 @@ class Piwik_DataTable_Filter_BeautifyTimeRangeLabels extends Piwik_DataTable_Fil } else { - return sprintf($this->labelPlural, "".ceil($lowerBound / 60).urlencode('+')); + // since we're using minutes, we use floor so 1801s+ will be 30m+ and not 31m+ + return sprintf($this->labelPlural, "".floor($lowerBound / 60).urlencode('+')); } } } |