Permalink
Browse files

bugfix. should use the internal pid represenation to update table ele…

…lent.
  • Loading branch information...
1 parent 7f873f2 commit 920b1861caaddd89ddceb3f0ec4c463dc0acd3ec huiqing committed Sep 23, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/percept2_db.erl
View
@@ -1198,8 +1198,8 @@ update_information_sent_1(From, MsgSize, To, Ts) ->
msgs_sent={1, MsgSize}
});
[I] ->
- {No, Size} = I#information.msgs_sent,
- ets:update_element(pdb_info, From,
+ {No, Size} = I#information.msgs_sent,
+ ets:update_element(pdb_info, InternalPid,
{12, {No+1, Size+MsgSize}})
end.

0 comments on commit 920b186

Please sign in to comment.