diff options
-rw-r--r-- | src/fs/fs_download.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c index 43cd5264b..4def42545 100644 --- a/src/fs/fs_download.c +++ b/src/fs/fs_download.c | |||
@@ -1535,6 +1535,7 @@ create_download_request (struct DownloadRequest *parent, | |||
1535 | if (dr->num_children * child_block_size < | 1535 | if (dr->num_children * child_block_size < |
1536 | file_start_offset + desired_length - dr_offset) | 1536 | file_start_offset + desired_length - dr_offset) |
1537 | dr->num_children++; /* round up */ | 1537 | dr->num_children++; /* round up */ |
1538 | dr->num_children -= head_skip; | ||
1538 | if (dr->num_children > CHK_PER_INODE) | 1539 | if (dr->num_children > CHK_PER_INODE) |
1539 | dr->num_children = CHK_PER_INODE; /* cap at max */ | 1540 | dr->num_children = CHK_PER_INODE; /* cap at max */ |
1540 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 1541 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -1544,7 +1545,6 @@ create_download_request (struct DownloadRequest *parent, | |||
1544 | dr->num_children); | 1545 | dr->num_children); |
1545 | 1546 | ||
1546 | /* now we can get the total number of *interesting* children for this block */ | 1547 | /* now we can get the total number of *interesting* children for this block */ |
1547 | dr->num_children -= head_skip; | ||
1548 | 1548 | ||
1549 | /* why else would we have gotten here to begin with? (that'd be a bad logic error) */ | 1549 | /* why else would we have gotten here to begin with? (that'd be a bad logic error) */ |
1550 | GNUNET_assert (dr->num_children > 0); | 1550 | GNUNET_assert (dr->num_children > 0); |