diff --git a/ping/ping.go b/ping/ping.go index 32486c0..6b0b596 100644 --- a/ping/ping.go +++ b/ping/ping.go @@ -54,7 +54,7 @@ func (p *Ping) CollectMetrics(mts []plugin.Metric) ([]plugin.Metric, error) { } count, err := cfg.GetInt("count") - maxIntVal := int64((^uint(0)) >> 1) + maxIntVal := int64((^int(0)) >> 1) if err == nil && count > maxIntVal { return nil, fmt.Errorf("count exceeds %v", maxIntVal) }