diff options
| author | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-02-11 16:49:47 +0000 |
|---|---|---|
| committer | Richard Nyberg <rnyberg@murmeldjur.se> | 2006-02-11 16:49:47 +0000 |
| commit | 61752ade717c21044f83dfc09cfed8c4d54e2f67 (patch) | |
| tree | 933584610056d4e00f4332a9b502793c6b38b36e | |
| parent | bcac74d138af80dd367f39bf49969964a542b7df (diff) | |
| download | btpd-61752ade717c21044f83dfc09cfed8c4d54e2f67.tar.gz btpd-61752ade717c21044f83dfc09cfed8c4d54e2f67.zip | |
Change preallocation default to 2048. 1 may be a little low.
| -rw-r--r-- | btpd/main.c | 2 | ||||
| -rw-r--r-- | 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; |