Skip to content

Commit f2b61c7

Browse files
authored
Merge pull request #1576 from mattrjacobs/fix-histogram-calculation
Fix to permyriad calculation
2 parents dd1087a + f956eba commit f2b61c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hystrix-core/src/main/java/com/netflix/hystrix/metric/CachedValuesHistogram.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public int getMean() {
108108
* @return value at percentile (from cache if possible)
109109
*/
110110
public int getValueAtPercentile(double percentile) {
111-
int permyriad = (int) percentile * 100;
111+
int permyriad = (int) (percentile * 100);
112112
switch (permyriad) {
113113
case 0: return p0;
114114
case 500: return p5;

0 commit comments

Comments
 (0)