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

Improve metric threshold #2440

Merged
merged 3 commits into from
Apr 8, 2017
Merged

Improve metric threshold #2440

merged 3 commits into from
Apr 8, 2017

Conversation

jbrooksuk
Copy link
Member

Closes #2396


@GrahamCampbell and I have previous discussed this.

@jbrooksuk jbrooksuk added this to the V2.4.0 milestone Mar 18, 2017
$messages = [];

if (60 % $this->threshold !== 0) {
$messages[] = 'Threshold must be divisible by 60.';
Copy link
Contributor

Choose a reason for hiding this comment

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

No, the threshold must divide 60. Not the same thing.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed!

@@ -221,7 +221,7 @@ public function validate()
$messages = [];

if (60 % $this->threshold !== 0) {
$messages[] = 'Threshold must be divisible by 60.';
$messages[] = 'Threshold must divide by 60.';
Copy link
Contributor

Choose a reason for hiding this comment

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

Just divide 60, not by.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not into 60? The wording doesn't make sense haha.

Copy link
Contributor

@GrahamCampbell GrahamCampbell Apr 2, 2017

Choose a reason for hiding this comment

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

We'd say "The threshold must divide 60.", or we could notate this t | 60 for "t divides 60".

Copy link
Member Author

Choose a reason for hiding this comment

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

You're a mathematician though 😂

@jbrooksuk jbrooksuk merged commit 3425f3a into 2.4 Apr 8, 2017
@jbrooksuk jbrooksuk deleted the metric-thresholds branch April 8, 2017 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants