Permalink
Browse files

ns

  • Loading branch information...
1 parent d2a3843 commit f513c04997fbd0e9c3c8ff694d385b67abad38bc @belaban committed Jan 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/org/jgroups/protocols/pbcast/STABLE.java
View
4 src/org/jgroups/protocols/pbcast/STABLE.java
@@ -356,8 +356,8 @@ private void handleViewChange(View v) {
if(ergonomics && cap > 0) {
long max_heap=(long)(memory_manager.getHeapMemoryUsage().getMax() * cap);
- long size=tmp.size() * original_max_bytes;
- max_bytes=Math.min(max_heap, size);
+ long new_size=tmp.size() * original_max_bytes;
+ max_bytes=Math.min(max_heap, new_size);
if(log.isDebugEnabled())
log.debug("[ergonomics] setting max_bytes to " + Util.printBytes(max_bytes) + " (" + tmp.size() + " members)");
}

0 comments on commit f513c04

Please sign in to comment.