Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Oct 27, 2016
1 parent e49e7c9 commit ed3911f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Config struct {
URL string `env:"HYSTRIX_URL,required"`
Clusters []string `env:"HYSTRIX_CLUSTERS"`
ReportLatencies []string `env:"HYSTRIX_REPORT_LATENCIES" envSeparator:"," envDefault:"100th,99.5th,99th,95th,90th,75th,50th,25th,0th,mean"`
ReportInterval int `env:"HYSTRIX_REPORT_INTERVAL" envDefault:"5"`
ReportInterval float64 `env:"HYSTRIX_REPORT_INTERVAL" envDefault:"5"`
}

// Get the config
Expand Down
4 changes: 2 additions & 2 deletions internal/report/librato/librato.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
)

// New report type
func New(user, token string, metrics []string, interval int) *Librato {
func New(user, token string, metrics []string, interval float64) *Librato {
return &Librato{
user: user,
token: token,
Expand All @@ -30,7 +30,7 @@ type Librato struct {
reports map[string]time.Time
lock sync.RWMutex
metrics []string
interval int
interval float64
}

// Report the given data to librato for the given cluster
Expand Down

0 comments on commit ed3911f

Please sign in to comment.