Skip to content

Commit

Permalink
chore: changing the credibility minimum value
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanCapistrano committed Mar 15, 2024
1 parent 41dba6f commit 0237372
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/reputation/node/models/Node.java
Original file line number Diff line number Diff line change
Expand Up @@ -835,11 +835,11 @@ private float calculateCredibility(
);
}

/* Limitando o valor máximo e mínimo da credibilidade. */
/* Limitando o valor mínimo e máximo da credibilidade. */
if (nodeCredibility > 1) {
nodeCredibility = 1;
} else if (nodeCredibility < -10) {
nodeCredibility = -10;
} else if (nodeCredibility < -1) {
nodeCredibility = -1;
}
}

Expand Down

0 comments on commit 0237372

Please sign in to comment.