Skip to content

Commit

Permalink
wrong numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
Snafkin547 committed Sep 13, 2024
1 parent 2ca946d commit 6211eea
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tests/c_api/test_join_sail.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ json import_JSON(const std::string& path) {
}

void download_from_s3(int rank, const std::string& filename) {
std::string rankStr = std::to_string(rank+1);
std::string rankStr = std::to_string(rank);
std::string awsCommand = "aws s3 cp s3://secrecy-bucket" + rankStr + "/" + filename + " ../";
int result = system(awsCommand.c_str());

Expand All @@ -43,7 +43,7 @@ void download_from_s3(int rank, const std::string& filename) {

void upload_to_s3(int rank, json output_json, const std::string& filename){
// Convert the rank and filename
std::string rankStr = std::to_string(rank);
std::string rankStr = std::to_string(rank+1);
std::ofstream json_file(filename);
if(!json_file.is_open()){
std::cerr << "Error openiing file: " << filename << std::endl;
Expand Down

0 comments on commit 6211eea

Please sign in to comment.