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

Provide better information regarding memory usage by each plugin #6794

Conversation

czolnowski
Copy link
Contributor

I have implemented this issue: #6708
Also I have discussed this with issue author and it looks like good implementation of his idea. @mattab what you think? Should be more or this is enough for this PR?

* @param int $precision Precision value, default 2.
* @return string
*/
public static function bytesToSize($bytes, $precision = 2)
Copy link
Member

Choose a reason for hiding this comment

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

Did you maybe miss that we have Formatter::getPrettySizeFromBytes ?
before implementing something always search in the codebase. for example I search for 1024 and find all code that does stuff with bytes/kb and I found this function.

@czolnowski
Copy link
Contributor Author

Hello @mattab,
thanks for your review! I changed the code according to your review comments. I hope that now it looks much better.

mattab pushed a commit that referenced this pull request Dec 4, 2014
…ion-of-memory-usage-in-archiving

Provide better information regarding memory usage by each plugin
@mattab mattab merged commit 7ab9fdd into matomo-org:master Dec 4, 2014
@mattab
Copy link
Member

mattab commented Dec 4, 2014

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants