From ffaeb271f9f2e746c702650e26709db35ec7f158 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 2 Jul 2009 16:26:04 +0000 Subject: 2009-07-03 Tatsuhiro Tsujikawa Rewritten PeerStats handling in SegmentMan.cc. Now we have 2 list of PeerStat in SegmentMan. peerStats is used for calculating download speed. Therefore all active PeerStats should be in there. Another one is _fastestPeerStats and it only contains fastest PeerStat for each hostname/protocol pair. They are used for updating ServerStat. * src/DownloadCommand.cc * src/Request.h * src/RequestGroupMan.cc * src/SegmentMan.cc * src/SegmentMan.h * test/SegmentManTest.cc --- src/Request.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/Request.h') diff --git a/src/Request.h b/src/Request.h index a3552229..cab16999 100644 --- a/src/Request.h +++ b/src/Request.h @@ -185,8 +185,6 @@ public: const SharedHandle& initPeerStat(); - void purgePeerStat() { _peerStat.reset(); } - static const std::string METHOD_GET; static const std::string METHOD_HEAD; -- cgit