diff --git a/helper_functions.go b/helper_functions.go index cdffe8f..955a313 100644 --- a/helper_functions.go +++ b/helper_functions.go @@ -228,11 +228,10 @@ func getTotalBytes(alias []string, token string, fileSize float64) (float64, err re := regexp.MustCompile(pattern) processedInput := re.ReplaceAllString(stringBody[startIndex+63:startIndex+63+16], " ") - processedInput = strings.Replace(processedInput, " ", "", -1) + //processedInput = strings.Replace(processedInput, " ", "", -1) total, err := strconv.ParseFloat(processedInput, 64) - - fmt.Println(processedInput) + fmt.Println(total) if err != nil { fmt.Println(err) diff --git a/instances.go b/instances.go index 3b61321..f7c077a 100644 --- a/instances.go +++ b/instances.go @@ -592,9 +592,6 @@ func (minioInstance *MinIO) uploadFile(reader io.Reader, tags map[string]string, maxim := 0.0 var targetSite string - fmt.Println(spaces) - fmt.Printf("CurrentIndex: %d\n", minioInstance.currentIndex) - if len(spaces) == minioInstance.currentIndex-1 { for k, v := range spaces[minioInstance.robinIndex] { // First Case it selects as the target site the site at the current robinIndex if value is greater then 0 @@ -638,8 +635,6 @@ func (minioInstance *MinIO) uploadFile(reader io.Reader, tags map[string]string, bucketName = "dataspace" } - fmt.Printf("Target Site: %s\n", targetSite) - object, err := minioInstance.clients[targetSite].PutObject( context.Background(), bucketName,