From 61752ade717c21044f83dfc09cfed8c4d54e2f67 Mon Sep 17 00:00:00 2001 From: Richard Nyberg Date: Sat, 11 Feb 2006 16:49:47 +0000 Subject: [PATCH] Change preallocation default to 2048. 1 may be a little low. --- btpd/main.c | 2 +- btpd/opts.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/btpd/main.c b/btpd/main.c index d7bfc1e..6dd9bf3 100644 --- a/btpd/main.c +++ b/btpd/main.c @@ -111,7 +111,7 @@ usage(void) "\tListen at port n. Default is 6881.\n" "\n" "--prealloc n\n" - "\tPreallocate disk space in chunks of n kB. Default is 1.\n" + "\tPreallocate disk space in chunks of n kB. Default is 2048.\n" "\tNote that n will be rounded up to the closest multiple of the\n" "\ttorrent piece size. If n is zero no preallocation will be done.\n" "\n"); diff --git a/btpd/opts.c b/btpd/opts.c index cccf2da..70f4925 100644 --- a/btpd/opts.c +++ b/btpd/opts.c @@ -11,4 +11,4 @@ unsigned net_max_peers; unsigned net_bw_limit_in; unsigned net_bw_limit_out; int net_port = 6881; -off_t cm_alloc_size = 1; +off_t cm_alloc_size = 2048;