diff --git a/src/Chksum/Program.cs b/src/Chksum/Program.cs index 0abc8d0..8ce3406 100644 --- a/src/Chksum/Program.cs +++ b/src/Chksum/Program.cs @@ -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", diff --git a/src/Chksum/chksum.cs b/src/Chksum/chksum.cs index c4163cb..d024ec1 100644 --- a/src/Chksum/chksum.cs +++ b/src/Chksum/chksum.cs @@ -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();