Skip to content

Commit

Permalink
Can't keep track anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
JarcauCristian committed Dec 31, 2023
1 parent 841680a commit abb196f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 2 additions & 3 deletions helper_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 0 additions & 5 deletions instances.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit abb196f

Please sign in to comment.