summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-03-15 17:21:19 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2011-03-15 17:21:19 +0000
commitf424d34e56d68d34938f386134a59ae48326ae2b (patch)
treebaa6d78c8b59efd382fcd177006b1fdff2f2dd81 /src
parentdd9651cd08c840cd5067154b9f8c438ab891de04 (diff)
downloadrabbitmq-server-git-f424d34e56d68d34938f386134a59ae48326ae2b.tar.gz
cosmetic
Diffstat (limited to 'src')
-rw-r--r--src/file_handle_cache.erl10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl
index e8e86c7cc8..4f0365718f 100644
--- a/src/file_handle_cache.erl
+++ b/src/file_handle_cache.erl
@@ -1150,12 +1150,10 @@ notify_age(CStates, AverageAge) ->
notify_age0(Clients, CStates, Required) ->
case [CState || CState <- CStates, CState#cstate.callback =/= undefined] of
- [] ->
- ok;
- Notifications ->
- {L1, L2} = lists:split(random:uniform(length(Notifications)),
- Notifications),
- notify(Clients, Required, L2 ++ L1)
+ [] -> ok;
+ Notifications -> S = random:uniform(length(Notifications)),
+ {L1, L2} = lists:split(S, Notifications),
+ notify(Clients, Required, L2 ++ L1)
end.
notify(_Clients, _Required, []) ->