Tuple.create -> Tuple.newTuple.

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@782 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Michael Bayne
2008-11-18 21:15:57 +00:00
parent c83064c2c2
commit 2c8c193705
2 changed files with 2 additions and 2 deletions
@@ -408,7 +408,7 @@ public class GameManager extends PlaceManager
if (_startmsgs == null) { if (_startmsgs == null) {
_startmsgs = Lists.newArrayList(); _startmsgs = Lists.newArrayList();
} }
_startmsgs.add(Tuple.create(msgbundle, msg)); _startmsgs.add(Tuple.newTuple(msgbundle, msg));
return; return;
} }
@@ -146,7 +146,7 @@ public class Percentiler
for (int ii = 0; ii < BUCKET_COUNT; ii++) { for (int ii = 0; ii < BUCKET_COUNT; ii++) {
// determine the first new bucket that contains some or all of the old bucket // determine the first new bucket that contains some or all of the old bucket
float obot = _min + odelta * ii; float obot = _min + odelta * ii;
int newidx = (int)Math.floor((obot - newmin) / ndelta); int newidx = Math.min(BUCKET_COUNT-1, (int)Math.floor((obot - newmin) / ndelta));
// compute how much of this bucket (if any) spills over into the next bucket // compute how much of this bucket (if any) spills over into the next bucket
float newoff = (float)Math.IEEEremainder(obot - newmin, ndelta); float newoff = (float)Math.IEEEremainder(obot - newmin, ndelta);