Sfoglia il codice sorgente

Change preallocation default to 2048. 1 may be a little low.

master
Richard Nyberg 19 anni fa
parent
commit
61752ade71
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      btpd/main.c
  2. +1
    -1
      btpd/opts.c

+ 1
- 1
btpd/main.c Vedi File

@@ -111,7 +111,7 @@ usage(void)
"\tListen at port n. Default is 6881.\n" "\tListen at port n. Default is 6881.\n"
"\n" "\n"
"--prealloc 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" "\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" "\ttorrent piece size. If n is zero no preallocation will be done.\n"
"\n"); "\n");


+ 1
- 1
btpd/opts.c Vedi File

@@ -11,4 +11,4 @@ unsigned net_max_peers;
unsigned net_bw_limit_in; unsigned net_bw_limit_in;
unsigned net_bw_limit_out; unsigned net_bw_limit_out;
int net_port = 6881; int net_port = 6881;
off_t cm_alloc_size = 1; off_t cm_alloc_size = 2048;

||||||
x
 
000:0
Loading…
Annulla
Salva