gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r21473 - gnunet/src/fs


From: gnunet
Subject: [GNUnet-SVN] r21473 - gnunet/src/fs
Date: Mon, 14 May 2012 13:40:17 +0200

Author: grothoff
Date: 2012-05-14 13:40:17 +0200 (Mon, 14 May 2012)
New Revision: 21473

Modified:
   gnunet/src/fs/fs_download.c
Log:
-fixing #2345

Modified: gnunet/src/fs/fs_download.c
===================================================================
--- gnunet/src/fs/fs_download.c 2012-05-14 11:26:59 UTC (rev 21472)
+++ gnunet/src/fs/fs_download.c 2012-05-14 11:40:17 UTC (rev 21473)
@@ -1535,6 +1535,7 @@
     if (dr->num_children * child_block_size <
         file_start_offset + desired_length - dr_offset)
       dr->num_children++;       /* round up */
+    dr->num_children -= head_skip;
     if (dr->num_children > CHK_PER_INODE)
       dr->num_children = CHK_PER_INODE; /* cap at max */
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
@@ -1544,7 +1545,6 @@
                dr->num_children);
 
     /* now we can get the total number of *interesting* children for this 
block */
-    dr->num_children -= head_skip;
 
     /* why else would we have gotten here to begin with? (that'd be a bad 
logic error) */
     GNUNET_assert (dr->num_children > 0);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]