Permalink
Browse files

Reverting to using now()

This makes more sense if the same process runs many requests
in a tight loop and risks asking more watchers
  • Loading branch information...
ferd committed Apr 6, 2012
1 parent f53efec commit 44dcd83b96ca4b6776041611904e5be74cbb6cfe
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/dispcount_watcher.erl
@@ -142,7 +142,7 @@ init(Id,Conf,M,A) ->
end.
dispatch_id(Num) ->
- erlang:phash2({os:timestamp(),self()}, Num) + 1.
+ erlang:phash2({now(),self()}, Num) + 1.
is_free(Tid, Id) ->
%% We optionally keep a tiny message queue in there,

0 comments on commit 44dcd83

Please sign in to comment.