Skip to content

Commit

Permalink
belongs to previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ippes committed Jun 4, 2014
1 parent 8802c5e commit 4bc6e82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/src/main/java/net/tomp2p/utils/Utils.java
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,8 @@ public static int dataSize(PutBuilder putBuilder) {
if(putBuilder.isPutMeta() && putBuilder.changePublicKey()!=null) {
//we only send a marker
return 1;
} else if (putBuilder.isPutConfirm() || putBuilder.isPutReject()) {
return 1;
} else if(putBuilder.getDataMap()!=null) {
return putBuilder.getDataMap().size();
} else {
Expand Down

0 comments on commit 4bc6e82

Please sign in to comment.