|
|
|
@ -1,10 +1,10 @@ |
|
|
|
|
package utils |
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
|
"net" |
|
|
|
|
"bytes" |
|
|
|
|
"fmt" |
|
|
|
|
"net" |
|
|
|
|
"strings" |
|
|
|
|
"bytes" |
|
|
|
|
|
|
|
|
|
"pkg/libs/bytesize" |
|
|
|
|
"redis-shake/configure" |
|
|
|
@ -75,8 +75,8 @@ func ParseInfo(content []byte) map[string]string { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func GetTotalLink() int { |
|
|
|
|
if len(conf.Options.SourceAddress) != 0 { |
|
|
|
|
return len(conf.Options.SourceAddress) |
|
|
|
|
if len(conf.Options.SourceAddressList) != 0 { |
|
|
|
|
return len(conf.Options.SourceAddressList) |
|
|
|
|
} else { |
|
|
|
|
return len(conf.Options.RdbInput) |
|
|
|
|
} |
|
|
|
|