I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
Commit 595556c3 authored by zzz's avatar zzz
Browse files

* SessionKeyManager: Store original tagset size for debugging

parent eeaa4fbb
No related branches found
No related tags found
No related merge requests found
......@@ -744,7 +744,7 @@ public class TransientSessionKeyManager extends SessionKeyManager {
total += size;
buf.append("<li><b>ID: ").append(ts.getID())
.append(" Received:</b> ").append(DataHelper.formatDuration2(now - ts.getDate())).append(" ago with ");
buf.append(size).append(" tags remaining</li>");
buf.append(size).append('/').append(ts.getOriginalSize()).append(" tags remaining</li>");
}
buf.append("</ul></td></tr>\n");
out.write(buf.toString());
......@@ -774,7 +774,7 @@ public class TransientSessionKeyManager extends SessionKeyManager {
total += size;
buf.append("<li><b>ID: ").append(ts.getID())
.append(" Sent:</b> ").append(DataHelper.formatDuration2(now - ts.getDate())).append(" ago with ");
buf.append(size).append(" tags remaining; acked? ").append(ts.getAcked()).append("</li>");
buf.append(size).append('/').append(ts.getOriginalSize()).append(" tags remaining; acked? ").append(ts.getAcked()).append("</li>");
}
buf.append("</ul></td></tr>\n");
out.write(buf.toString());
......@@ -1084,6 +1084,7 @@ public class TransientSessionKeyManager extends SessionKeyManager {
private final SessionKey _key;
private final long _date;
private final int _id;
private final int _origSize;
//private Exception _createdBy;
/** did we get an ack for this tagset? Only for outbound tagsets */
private boolean _acked;
......@@ -1095,6 +1096,7 @@ public class TransientSessionKeyManager extends SessionKeyManager {
_key = key;
_date = date;
_id = id;
_origSize = tags.size();
//if (true) {
// long now = I2PAppContext.getGlobalContext().clock().now();
// _createdBy = new Exception("Created by: key=" + _key.toBase64() + " on "
......@@ -1108,6 +1110,11 @@ public class TransientSessionKeyManager extends SessionKeyManager {
return _date;
}
/** @since 0.9.3 for debugging */
public long getOriginalSize() {
return _origSize;
}
//void setDate(long when) {
// _date = when;
//}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment