From 0a6b8268fbe7ef02a781ff821de89a8dc57f7511 Mon Sep 17 00:00:00 2001 From: Scott Lystig Fritchie Date: Mon, 3 Nov 2014 23:04:46 +0900 Subject: [PATCH] Fix major error in rank_projection(), silly me --- prototype/poc-machi/src/machi_chain_manager1.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prototype/poc-machi/src/machi_chain_manager1.erl b/prototype/poc-machi/src/machi_chain_manager1.erl index 9a4c4cd..8daf3fc 100644 --- a/prototype/poc-machi/src/machi_chain_manager1.erl +++ b/prototype/poc-machi/src/machi_chain_manager1.erl @@ -519,8 +519,8 @@ rank_projection(#projection{author_server=Author, repairing=Repairing_list}, MemberRank, N) -> AuthorRank = orddict:fetch(Author, MemberRank), AuthorRank + - (1*N + length(Repairing_list)) + - (2*N + length(UPI_list)). + ( N * length(Repairing_list)) + + (N*N * length(UPI_list)). do_react_to_env(S) -> put(react, []),