We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41be02e commit efb1a77Copy full SHA for efb1a77
1 file changed
options.go
@@ -238,14 +238,14 @@ func WithCPUMax(max int) Option {
238
func WithCPUSamplingTime(duration string) Option {
239
return optionFunc(func(opts *options) (err error) {
240
// CPUSamplingTime wouldn't be zero value, because it
241
- // will be initialized as defaultInterval at newOptions()
+ // will be initialized as defaultCPUSamplingTime at newOptions()
242
newDuration, err := time.ParseDuration(duration)
243
if err != nil {
244
return
245
}
246
247
if newDuration <= 0 {
248
- newDuration = defaultInterval
+ newDuration = defaultCPUSamplingTime
249
250
251
opts.CPUSamplingTime = newDuration
0 commit comments