From 2919b96d6576a0fa2bbe9c075d200c3061027850 Mon Sep 17 00:00:00 2001 From: Matthias Radestock Date: Tue, 15 Mar 2011 17:21:19 +0000 Subject: cosmetic --- src/file_handle_cache.erl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl index e8e86c7c..4f036571 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, []) -> -- cgit v1.2.1