feature/progressBar #4

Merged
ProfessionalUwU merged 2 commits from feature/progressBar into feature/NewHashingAlgorithms 2023-07-03 23:50:38 +02:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 59f2e3466c - Show all commits

View File

@ -27,7 +27,7 @@ public class Program {
try {
if (args[1] == "MD5") {
utils.doTheThing(args[1]);
}
int bufferSize = int.Parse(args[2]);
utils.doTheThing(args[1], bufferSize);
@ -69,7 +69,7 @@ public class Program {
static void PrintAvailableOptions() {
String[] options = {
"checksum - MD5, Murmur and XxHash",
"checksum - MD5, Murmur and XxHash - Default buffer size is 4096",
"compareDatabases",
"compareChecksums",
"saveToSqlite",

View File

@ -199,7 +199,7 @@ public class ChksumUtils {
return hash;
}
public void doTheThing(string hashalgo, int bufferSize) {
public void doTheThing(string hashalgo, int bufferSize = 4096) {
ConnectionMultiplexer redis = ConnectionMultiplexer.Connect("localhost");
IDatabase db = redis.GetDatabase();