Author: toad
Date: 2008-04-28 22:48:06 +0000 (Mon, 28 Apr 2008)
New Revision: 19605
Modified:
trunk/freenet/src/freenet/node/NodeStats.java
Log:
nextgens: "What about using 90L here instead of a cast ?"
Modified: trunk/freenet/src/freenet/node/NodeStats.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeStats.java 2008-04-28 22:40:09 UTC
(rev 19604)
+++ trunk/freenet/src/freenet/node/NodeStats.java 2008-04-28 22:48:06 UTC
(rev 19605)
@@ -585,7 +585,7 @@
successfulSskOfferReplyBytesReceivedAverage.currentValue() * numSSKOfferReplies;
}
double bandwidthAvailableInput =
- (long)node.getInputBandwidthLimit() * 90; // 90 seconds
at full power; avoid integer overflow
+ node.getInputBandwidthLimit() * 90L; // 90 seconds at
full power; avoid integer overflow
if(bandwidthAvailableInput < 0){
Logger.error(this, "Negative available bandwidth:
"+bandwidthAvailableInput+" node.ibwlimit="+node.getInputBandwidthLimit()+"
node.obwlimit="+node.getOutputBandwidthLimit()+"
node.inputLimitDefault="+node.inputLimitDefault);
}