summaryrefslogtreecommitdiff
path: root/src/Data/Torrent/Bitfield.hs
diff options
context:
space:
mode:
authorSam Truzjan <pxqr.sta@gmail.com>2013-12-01 14:29:56 +0400
committerSam Truzjan <pxqr.sta@gmail.com>2013-12-01 14:29:56 +0400
commitfe12e76da86b514ae5725fb8eaec7821c0376558 (patch)
treed9240d52c13e3bc912269336b44aa19b91575adf /src/Data/Torrent/Bitfield.hs
parent541ffe4b36e53dc57926ef70f1a41caf0c114b58 (diff)
Move exchange extension stuff to the Message module
Diffstat (limited to 'src/Data/Torrent/Bitfield.hs')
-rw-r--r--src/Data/Torrent/Bitfield.hs1
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.
191type Frequency = Int 191type 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.
194frequencies :: [Bitfield] -> Vector Frequency 195frequencies :: [Bitfield] -> Vector Frequency
195frequencies [] = V.fromList [] 196frequencies [] = V.fromList []