re-fix mapConcurrentlyChunked

parent 4399f066
......@@ -64,7 +64,7 @@ mapMP f xs = do
mapConcurrentlyChunked :: (a -> IO b) -> [a] -> IO [b]
mapConcurrentlyChunked f ts = do
caps <- getNumCapabilities
let n = caps `div` length ts
let n = length ts `div` caps
concat <$> mapConcurrently (mapM f) (chunksOf n ts)
filterTermsAndCooc
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment