[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r5064 - GNUnet/src/applications/fs/tools
From: |
gnunet |
Subject: |
[GNUnet-SVN] r5064 - GNUnet/src/applications/fs/tools |
Date: |
Fri, 15 Jun 2007 16:57:43 -0600 (MDT) |
Author: grothoff
Date: 2007-06-15 16:57:42 -0600 (Fri, 15 Jun 2007)
New Revision: 5064
Modified:
GNUnet/src/applications/fs/tools/gnunet-download.c
Log:
implement -p option
Modified: GNUnet/src/applications/fs/tools/gnunet-download.c
===================================================================
--- GNUnet/src/applications/fs/tools/gnunet-download.c 2007-06-15 22:57:22 UTC
(rev 5063)
+++ GNUnet/src/applications/fs/tools/gnunet-download.c 2007-06-15 22:57:42 UTC
(rev 5064)
@@ -45,6 +45,8 @@
static unsigned int anonymity = 1;
+static unsigned int parallelism = 32;
+
static cron_t start_time;
static struct FSUI_DownloadList * dl;
@@ -76,6 +78,8 @@
{ 'o', "output", "FILENAME",
gettext_noop("write the file to FILENAME"),
1, &gnunet_getopt_configure_set_string, &filename },
+ { 'p', "parallelism", "DOWNLOADS",
+ gettext_noop("set the maximum number of parallel downloads that are
allowed"),
{ 'R', "recursive", NULL,
gettext_noop("download a GNUnet directory recursively"),
0, &gnunet_getopt_configure_set_one, &do_recursive },
@@ -283,7 +287,7 @@
ctx = FSUI_start(ectx,
cfg,
"gnunet-download",
- 32, /* FIXME: support option! */
+ parallelism == 0 ? 1 : parallelism,
NO,
&progressModel,
NULL);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r5064 - GNUnet/src/applications/fs/tools,
gnunet <=