diff options
author | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-01 14:29:56 +0400 |
---|---|---|
committer | Sam Truzjan <pxqr.sta@gmail.com> | 2013-12-01 14:29:56 +0400 |
commit | fe12e76da86b514ae5725fb8eaec7821c0376558 (patch) | |
tree | d9240d52c13e3bc912269336b44aa19b91575adf /src/Data/Torrent/Bitfield.hs | |
parent | 541ffe4b36e53dc57926ef70f1a41caf0c114b58 (diff) |
Move exchange extension stuff to the Message module
Diffstat (limited to 'src/Data/Torrent/Bitfield.hs')
-rw-r--r-- | src/Data/Torrent/Bitfield.hs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Data/Torrent/Bitfield.hs b/src/Data/Torrent/Bitfield.hs index a87a7ccf..c7ef0998 100644 --- a/src/Data/Torrent/Bitfield.hs +++ b/src/Data/Torrent/Bitfield.hs | |||
@@ -190,6 +190,7 @@ isSubsetOf a b = bfSet a `S.isSubsetOf` bfSet b | |||
190 | -- download. | 190 | -- download. |
191 | type Frequency = Int | 191 | type Frequency = Int |
192 | 192 | ||
193 | -- TODO rename to availability | ||
193 | -- | How many times each piece index occur in the given bitfield set. | 194 | -- | How many times each piece index occur in the given bitfield set. |
194 | frequencies :: [Bitfield] -> Vector Frequency | 195 | frequencies :: [Bitfield] -> Vector Frequency |
195 | frequencies [] = V.fromList [] | 196 | frequencies [] = V.fromList [] |