Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix formatting of metrics in milliseconds #16325

Merged
merged 1 commit into from Aug 20, 2020
Merged

Fix formatting of metrics in milliseconds #16325

merged 1 commit into from Aug 20, 2020

Conversation

sgiehl
Copy link
Member

@sgiehl sgiehl commented Aug 19, 2020

Guess that only affects the formatting of some metrics (e.g. new performance metrics) in custom reports...

@sgiehl sgiehl added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. Needs Review PRs that need a code review labels Aug 19, 2020
@sgiehl sgiehl added this to the 4.0.0 milestone Aug 19, 2020
@sgiehl sgiehl requested a review from tsteur August 19, 2020 17:24
@@ -456,7 +456,7 @@ public function formatValue($value, $idSite, Formatter $formatter)
case Dimension::TYPE_DURATION_S:
return $formatter->getPrettyTimeFromSeconds($value, $displayAsSentence = false);
case Dimension::TYPE_DURATION_MS:
return $formatter->getPrettyTimeFromSeconds($value, $displayAsSentence = true);
return $formatter->getPrettyTimeFromSeconds($value/1000, $displayAsSentence = true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

updated it

@tsteur tsteur merged commit e08e855 into 4.x-dev Aug 20, 2020
@tsteur tsteur deleted the fixformatting branch August 20, 2020 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants