Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix a bug in network IO stats where global stats were not correctly s…

…ummed
  • Loading branch information...
commit f1f9a57e57d04f313f5f539dfbfbb7694a8c9b9e 1 parent a67b30f
Ariel Weisberg authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/frontend/org/voltcore/network/VoltNetworkPool.java
View
6 src/frontend/org/voltcore/network/VoltNetworkPool.java
@@ -105,9 +105,9 @@ public Connection registerChannel(
if (globalStats == null) {
globalStats = stats.get(-1L).getSecond();
} else {
- int ii = 0;
- for (long stat : stats.get(-1L).getSecond()) {
- globalStats[ii] += stat;
+ final long localStats[] = stats.get(-1L).getSecond();
+ for (int ii = 0; ii < localStats.length; ii++) {
+ globalStats[ii] += localStats[ii];
}
}
retval.putAll(stats);
Please sign in to comment.
Something went wrong with that request. Please try again.