Got rid of rogue dumpStack and varargified
git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@798 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
@@ -411,8 +411,7 @@ public class Percentiler
|
|||||||
int idx = Math.round((value - _min) * BUCKET_COUNT / (_max - _min));
|
int idx = Math.round((value - _min) * BUCKET_COUNT / (_max - _min));
|
||||||
idx = Math.min(idx, BUCKET_COUNT-1);
|
idx = Math.min(idx, BUCKET_COUNT-1);
|
||||||
if (idx < 0 || idx >= BUCKET_COUNT) {
|
if (idx < 0 || idx >= BUCKET_COUNT) {
|
||||||
log.warning("'" + value + "' caused bogus bucket index (" + idx + ") to be computed.");
|
log.warning("Bogus bucket index, using 0", "value", value, "idx", idx, new Throwable());
|
||||||
Thread.dumpStack();
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return idx;
|
return idx;
|
||||||
|
|||||||
Reference in New Issue
Block a user