diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-05-14 11:40:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-05-14 11:40:17 +0000 |
commit | 5f3f6615b7531a6c2f90bc074cbeffbe46a2efd0 (patch) | |
tree | e4b7857e1b77b22a22ab4662b10c61fc6252082d | |
parent | 02347b97da85b6d7a6227a73cf43024a1ce74936 (diff) | |
download | gnunet-5f3f6615b7531a6c2f90bc074cbeffbe46a2efd0.tar.gz gnunet-5f3f6615b7531a6c2f90bc074cbeffbe46a2efd0.zip |
-fixing #2345
-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); |