Browse files

added fill factor

  • Loading branch information...
1 parent b7c4cfa commit f7bd31c9db9e4e90c1880a5143a42b13b5a7671f @belaban committed Dec 16, 2010
Showing with 4 additions and 1 deletion.
  1. +2 −1 src/org/jgroups/protocols/pbcast/NAKACK.java
  2. +2 −0 src/org/jgroups/stack/NakReceiverWindow.java
View
3 src/org/jgroups/protocols/pbcast/NAKACK.java
@@ -479,7 +479,8 @@ public String printRetransmitTableSizes() {
for(Map.Entry<Address,NakReceiverWindow> entry: xmit_table.entrySet()) {
NakReceiverWindow win=entry.getValue();
sb.append(entry.getKey() + ": ").append(win.getRetransmiTableSize())
- .append(" (capacity=" + win.getRetransmitTableCapacity() + ")");
+ .append(" (capacity=" + win.getRetransmitTableCapacity())
+ .append(", fill factor=" + win.getRetransmitTableFillFactor() + "%)\n");
}
return sb.toString();
}
View
2 src/org/jgroups/stack/NakReceiverWindow.java
@@ -208,6 +208,8 @@ private void setSmoothedLossRate() {
public int getRetransmitTableCapacity() {return xmit_table.capacity();}
+ public double getRetransmitTableFillFactor() {return xmit_table.getFillFactor();}
+
/**
* Adds a message according to its seqno (sequence number).

0 comments on commit f7bd31c

Please sign in to comment.