X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Ffs%2Fgnunet-service-fs_cp.h;h=e3c7cd2278259a8525aece2f1dfc30c062483bfd;hb=1f09f4f7716db5939ec1c9a278b5661616dd72d6;hp=11be4c6f12a7c0c70e8e1c6939101c59ebbe640a;hpb=0443654040fb277df95aae28a7b2a54a4f0a73bf;p=oweals%2Fgnunet.git diff --git a/src/fs/gnunet-service-fs_cp.h b/src/fs/gnunet-service-fs_cp.h index 11be4c6f1..e3c7cd227 100644 --- a/src/fs/gnunet-service-fs_cp.h +++ b/src/fs/gnunet-service-fs_cp.h @@ -92,6 +92,13 @@ struct GSF_PeerPerformanceData */ struct GNUNET_TIME_Relative avg_reply_delay; + /** + * If we get content we already have from this peer, for how + * long do we block him? Adjusted based on the fraction of + * redundant data we receive, between 1s and 1h. + */ + struct GNUNET_TIME_Relative migration_delay; + /** * Point in time until which this peer does not want us to migrate content * to it. @@ -140,10 +147,6 @@ struct GSF_PeerPerformanceData */ unsigned int pending_replies; - /** - * How many of the last blocks from migration were duplicates? - */ - unsigned int migration_duplication; }; @@ -339,7 +342,7 @@ GSF_get_peer_performance_data_ (struct GSF_ConnectedPeer *cp); */ void GSF_block_peer_migration_ (struct GSF_ConnectedPeer *cp, - struct GNUNET_TIME_Relative block_time); + struct GNUNET_TIME_Absolute block_time); /**