Skip to content

Commit

Permalink
Change average speed
Browse files Browse the repository at this point in the history
VityaSchel committed Sep 5, 2024
1 parent 9c6ffac commit c5b358c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions merger-app/main.cpp
Original file line number Diff line number Diff line change
@@ -212,7 +212,7 @@ void merge_files(const std::vector<std::string>& files, const std::string& outpu
}

outputFile.close();
userTextStream << "Files successfully merged into " << output_path << "\nNow you can install it via goldhen's installer!\nNow you can also delete .pkgpart files from /data/pkg_merger\n";
userTextStream << "Files successfully merged into " << output_path << "\nNow you can install it via goldhen's installer!\nNow you can also delete .pkgpart files from /data/pkg_merger\nClose and reopen this app to start again\n";
}


@@ -278,7 +278,7 @@ int main(void)
std::string fullPath = "/data/pkg_merger/" + file;
totalSize += get_file_size(fullPath);
}
const std::uint64_t speed = 20 * 1024 * 1024; // 60 MB/s
const std::uint64_t speed = 27 * 1024 * 1024; // 27 MB/s on average
std::uint64_t estimatedTimeInSeconds = totalSize / speed;

userTextStream << "\nEstimated time: " << formatTime(estimatedTimeInSeconds) << "\n";

0 comments on commit c5b358c

Please sign in to comment.