Commit 4c37dba9 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Modified RATE statistics to just return number (not a rate).

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk@3844 b35dd754-fafc-0310-a699-88a17e54d16e
parent 49a768a2
......@@ -1239,8 +1239,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
}
public double sample(long timePeriod) {
int received = inMessages.getAndSet(0);
return received/timePeriod;
return inMessages.getAndSet(0);
}
};
StatisticsManager.getInstance().addStatistic(statistic);
......@@ -1270,8 +1269,7 @@ public class MultiUserChatServerImpl extends BasicModule implements MultiUserCha
}
public double sample(long timePeriod) {
long received = outMessages.getAndSet(0);
return received/timePeriod;
return outMessages.getAndSet(0);
}
};
StatisticsManager.getInstance().addStatistic(statistic);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment