Skip to content

Conversation

@strvmarv
Copy link
Contributor

@strvmarv strvmarv commented Jan 9, 2018

No description provided.

@strvmarv strvmarv requested a review from eric-martin January 9, 2018 21:48
@strvmarv strvmarv self-assigned this Jan 9, 2018
@strvmarv strvmarv added the bug label Jan 9, 2018
{
MetricQueue.Enqueue(metric);

// RT-561: Incremented Metrics Broken
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The magic

case MetricType.CounterTime:
setting.AutoReportLastValueIfNothingReported = false; //do not allow this
break;
case MetricType.MetricAverage:
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you removing these types from the switch?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The bottom two have no implementation...might as well fall-through...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I only removed the useless cases...check the side-by-side diff...

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it.

@strvmarv strvmarv merged commit 2e830bb into master Jan 10, 2018
@strvmarv strvmarv deleted the bug/RT-561 branch January 10, 2018 21:15
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.

3 participants