about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRichard Nyberg <rnyberg@murmeldjur.se>2006-02-11 16:49:47 +0000
committerRichard Nyberg <rnyberg@murmeldjur.se>2006-02-11 16:49:47 +0000
commit61752ade717c21044f83dfc09cfed8c4d54e2f67 (patch)
tree933584610056d4e00f4332a9b502793c6b38b36e
parentbcac74d138af80dd367f39bf49969964a542b7df (diff)
downloadbtpd-61752ade717c21044f83dfc09cfed8c4d54e2f67.tar.gz
btpd-61752ade717c21044f83dfc09cfed8c4d54e2f67.zip
Change preallocation default to 2048. 1 may be a little low.
-rw-r--r--btpd/main.c2
-rw-r--r--btpd/opts.c2
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;