Skip to content

Commit

Permalink
Bump maximum chunksize
Browse files Browse the repository at this point in the history
  • Loading branch information
pontus committed Jan 15, 2025
1 parent 43e35bf commit 713d1e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/sdafs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func getConfigs() mainConfig {
flag.BoolVar(&foreground, "foreground", false, "Do not detach, run in foreground and send log output to stdout")
flag.BoolVar(&open, "open", false, "Set permissions allowing access by others than the user")
flag.UintVar(&chunkSize, "chunksize", 5120, "Chunk size (in kb) used when fetching data. "+
"Higher values likely to give better throughput but higher latency. Min 64 Max 16384.")
"Higher values likely to give better throughput but higher latency. Min 64 Max 65536.")
flag.IntVar(&logLevel, "loglevel", 0, "Loglevel, specified as per https://pkg.go.dev/log/slog#Level")

flag.Parse()
Expand All @@ -70,7 +70,7 @@ func getConfigs() mainConfig {
}

// Some sanity checks
if chunkSize > 16384 || chunkSize < 64 {
if chunkSize > 65536 || chunkSize < 64 {
fmt.Printf("Chunk size %d is not allowed, valid values are 64 to 16384\n\n",
chunkSize)
usage()
Expand Down

0 comments on commit 713d1e2

Please sign in to comment.