Skip to content

Commit

Permalink
fix typo : addGCMericsToComponent => addGCMetricsToComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
devholic committed Feb 23, 2016
1 parent 899fe5e commit eaba95b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions agent.go
Expand Up @@ -126,7 +126,6 @@ func (agent *Agent) Run() error {
return errors.New("please, pass a valid newrelic license key")
}


var component newrelic_platform_go.IComponent
component = newrelic_platform_go.NewPluginComponent(agent.NewrelicName, agent.AgentGUID, agent.Verbose)

Expand All @@ -136,7 +135,7 @@ func (agent *Agent) Run() error {

// Check agent flags and add relevant metrics.
if agent.CollectGcStat {
addGCMericsToComponent(component, agent.GCPollInterval)
addGCMetricsToComponent(component, agent.GCPollInterval)
agent.debug(fmt.Sprintf("Init GC metrics collection. Poll interval %d seconds.", agent.GCPollInterval))
}

Expand Down
2 changes: 1 addition & 1 deletion gc_metrics.go
Expand Up @@ -14,7 +14,7 @@ func newGCMetricaDataSource(pollInterval int) goMetricaDataSource {
return goMetricaDataSource{r}
}

func addGCMericsToComponent(component newrelic_platform_go.IComponent, pollInterval int) {
func addGCMetricsToComponent(component newrelic_platform_go.IComponent, pollInterval int) {
metrics := []*baseGoMetrica{
&baseGoMetrica{
name: "NumberOfGCCalls",
Expand Down

0 comments on commit eaba95b

Please sign in to comment.