• R/O
  • HTTP
  • SSH
  • HTTPS

bandwidth: Commit

Java用帯域制限ライブラリ


Commit MetaInfo

Revision692da0e83fb7a9072aef01bba2c7d4eeea72969c (tree)
Time2009-07-27 15:38:59
AuthorSenju Higurashi <senju@user...>
CommiterSenju Higurashi

Log Message

デバッグ出力を削除

Change Summary

Incremental Difference

--- a/src/net/excentrics/bandWidth/BandWidthController.java
+++ b/src/net/excentrics/bandWidth/BandWidthController.java
@@ -66,17 +66,6 @@ class BandWidthController {
6666
6767 final double currentBps = getCurrentBps();
6868
69- // TODO:デバッグ文
70- System.err.println();
71- System.err.println("bandwidth(bps): " + this.bandWidth);
72- System.err.println("currentBps(bps): " + currentBps);
73- System.err.println("bandwidth(Kbps): " + this.bandWidth / 1024);
74- System.err.println("currentBps(Kbps): " + currentBps / 1024);
75- System.err.println("bandwidth(Mbps): " + this.bandWidth / 1024 / 1024);
76- System.err.println("currentBps(Mbps): " + currentBps / 1024 / 1024);
77- System.err.println("cycle: " + this.cycle);
78- System.err.println("bytePerCycle: " + this.bytePerCycle);
79-
8069 // 現在の速度がbandWidthより出ている場合は書き込まない。
8170 if (currentBps > this.bandWidth) {
8271 return new SizeAndInterval(0, this.cycle);
@@ -101,9 +90,6 @@ class BandWidthController {
10190 }
10291 final long startTime = this.timeList.get(firstIndex);
10392 final long currentTime = System.currentTimeMillis();
104- // TODO:デバッグ文
105- System.err.println("real interval: "
106- + (currentTime - this.timeList.getLast()));
10793 long intervalInMillis = currentTime - startTime;
10894 // 最低1ミリ秒以上の待機時間を確保(時計の設定変更等の対応)
10995 intervalInMillis = Math.max(1, intervalInMillis);
@@ -122,8 +108,6 @@ class BandWidthController {
122108 public SizeAndInterval preWrite(int bufferSize) {
123109 final SizeAndInterval si = calculationSizeForWrite(bufferSize);
124110 this.timeList.add(System.currentTimeMillis());
125- // TODO: デバッグ用
126- System.err.println(si);
127111
128112 return si;
129113 }
@@ -137,8 +121,6 @@ class BandWidthController {
137121 * preWriteを呼び出す前にpostWriteが呼ばれた時
138122 */
139123 public void postWrite(int writtenSize) throws AsymmetricalCallException {
140- // デバッグ文
141- System.err.println("writtenSize:" + writtenSize);
142124 this.sizeList.add(writtenSize);
143125 removeListItems();
144126 if (this.sizeList.size() != this.timeList.size()) {
Show on old repository browser