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

mgr/dashboard: Add toBytes() method to FormatterService #20978

Merged
merged 1 commit into from Mar 21, 2018

Conversation

votdev
Copy link
Member

@votdev votdev commented Mar 20, 2018

Signed-off-by: Volker Theile vtheile@suse.com

@votdev votdev changed the title mgr/dashboard: Add toBytes() method to FormatterService. mgr/dashboard: Add toBytes() method to FormatterService Mar 20, 2018
const m = RegExp('^(\\d+)\\s*(B|K(B|iB)?|M(B|iB)?|G(B|iB)?|T(B|iB)?|P(B|iB)?|' +
'E(B|iB)?|Z(B|iB)?|Y(B|iB)?)?$', 'i').exec(value);
if (m === null) {
return false;
Copy link
Contributor

Choose a reason for hiding this comment

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

How will this be used? Would it make more sense to return null?
Could you give an example?

Signed-off-by: Volker Theile <vtheile@suse.com>
@votdev
Copy link
Member Author

votdev commented Mar 21, 2018

@tspmelo Your comment has been implemented.

Copy link
Contributor

@ricardoasmarques ricardoasmarques left a comment

Choose a reason for hiding this comment

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

Lgtm

@ricardoasmarques
Copy link
Contributor

After this PR is merged, I'll adapt #20972 accordingly.

Copy link
Contributor

@tspmelo tspmelo left a comment

Choose a reason for hiding this comment

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

lgtm

@votdev
Copy link
Member Author

votdev commented Mar 21, 2018

jenkins retest this please

1 similar comment
@votdev
Copy link
Member Author

votdev commented Mar 21, 2018

jenkins retest this please

@rjfd rjfd merged commit ac98cfd into ceph:master Mar 21, 2018
@votdev votdev deleted the improve_formatter branch March 22, 2018 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants