diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-04 21:07:31 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-04 21:07:31 +0000 |
commit | 237a4538616beadd40d3e918ad4b6597b4eb8561 (patch) | |
tree | 0dd47c4e5eb9f55d3dc5c9ccad0b0117cb7f31ae /src/fs/fs_download.c | |
parent | bbdae1a7c4614fcd38b321c1c0ee1096ffa59686 (diff) |
-add priorities to download queue
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r-- | src/fs/fs_download.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index b23d14b87e..2efdcb019f 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c @@ -2165,7 +2165,10 @@ GNUNET_FS_download_start_downloading_ (struct GNUNET_FS_DownloadContext *dc) GNUNET_assert (dc->job_queue == NULL); dc->job_queue = GNUNET_FS_queue_ (dc->h, &activate_fs_download, &deactivate_fs_download, - dc, (dc->length + DBLOCK_SIZE - 1) / DBLOCK_SIZE); + dc, (dc->length + DBLOCK_SIZE - 1) / DBLOCK_SIZE, + (0 == (dc->options & GNUNET_FS_DOWNLOAD_IS_PROBE)) + ? GNUNET_FS_QUEUE_PRIORITY_NORMAL + : GNUNET_FS_QUEUE_PRIORITY_PROBE); } |