summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/file_handle_cache.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl
index 144d383109..1b39d29697 100644
--- a/src/file_handle_cache.erl
+++ b/src/file_handle_cache.erl
@@ -738,7 +738,8 @@ process_obtains(State = #fhc_state { limit = Limit, count = Count,
Take = ObtainsLen - lists:min([ObtainsLen, Limit - Count]),
{ObtainsNew, ObtainableRev} = lists:split(Take, Obtains),
[gen_server:reply(From, ok) || From <- ObtainableRev],
- State #fhc_state { count = Count + Take, obtains = ObtainsNew }.
+ State #fhc_state { count = Count + length(ObtainableRev),
+ obtains = ObtainsNew }.
maybe_reduce(State = #fhc_state { limit = Limit, count = Count,
elders = Elders })