aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-12-21 16:08:24 +0000
committerChristian Grothoff <christian@grothoff.org>2010-12-21 16:08:24 +0000
commit7cd7199155b6313c9e1a4c10dc2efe21cacfd823 (patch)
tree50ac7637e37d9dbf4c0d9d39b9e720e10c11d534 /src/fs/gnunet-service-fs.c
parent2f1ab9bfd9b7417b5f9ba47e47ce39a17e2ea27c (diff)
downloadgnunet-7cd7199155b6313c9e1a4c10dc2efe21cacfd823.tar.gz
gnunet-7cd7199155b6313c9e1a4c10dc2efe21cacfd823.zip
fix
Diffstat (limited to 'src/fs/gnunet-service-fs.c')
-rw-r--r--src/fs/gnunet-service-fs.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fs/gnunet-service-fs.c b/src/fs/gnunet-service-fs.c
index fc55728b9..e522133e0 100644
--- a/src/fs/gnunet-service-fs.c
+++ b/src/fs/gnunet-service-fs.c
@@ -3733,13 +3733,11 @@ handle_p2p_put (void *cls,
3733 start); 3733 start);
3734 } 3734 }
3735 putl = GNUNET_LOAD_get_load (datastore_put_load); 3735 putl = GNUNET_LOAD_get_load (datastore_put_load);
3736 if ( (GNUNET_NO == prq.request_found) && 3736 if ( (NULL != (cp = prq.sender)) &&
3737 (GNUNET_NO == prq.request_found) &&
3737 ( (GNUNET_YES != active_to_migration) || 3738 ( (GNUNET_YES != active_to_migration) ||
3738 (putl > 2.5 * (1 + prq.priority)) ) ) 3739 (putl > 2.5 * (1 + prq.priority)) ) )
3739 { 3740 {
3740 cp = GNUNET_CONTAINER_multihashmap_get (connected_peers,
3741 &other->hashPubKey);
3742 GNUNET_assert (NULL != cp);
3743 if (GNUNET_TIME_absolute_get_duration (cp->last_migration_block).rel_value < 5000) 3741 if (GNUNET_TIME_absolute_get_duration (cp->last_migration_block).rel_value < 5000)
3744 return GNUNET_OK; /* already blocked */ 3742 return GNUNET_OK; /* already blocked */
3745 /* We're too busy; send MigrationStop message! */ 3743 /* We're too busy; send MigrationStop message! */