Permalink
Browse files

bugfix to the calculation of runnable procs/ports.

  • Loading branch information...
1 parent 476694f commit 9bef803e95784dc5a7b9dfacf5b5153defc4c7aa huiqing committed Oct 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/percept2_db.erl
View
@@ -767,7 +767,7 @@ consolidate_runnability_loop(Tab, Key, RunnableStates) ->
NewRunnableStates when is_port(Id)->
Rc = get_runnable_count(ports, State),
ets:update_element(Tab, Key, {#activity.runnable_count,
- {get({runnable, ports}), Rc}}),
+ {get({runnable, procs}), Rc}}),
consolidate_runnability_loop(Tab, ets:next(Tab, Key), NewRunnableStates);
NewRunnableStates when is_tuple(Id) andalso element(1, Id)==pid->
Rc = get_runnable_count(procs, State),

0 comments on commit 9bef803

Please sign in to comment.