提交 d8033c98 编写于 作者: W wangyapu 提交者: yapu.wang

fix some typos

上级 e942133f
......@@ -48,7 +48,7 @@ public class DefaultMessageAnalyzerManager extends ContainerHolder
private List<String> m_analyzerNames;
private Map<Long, Map<String, List<MessageAnalyzer>>> m_analyzers = new HashMap<Long, Map<String, List<MessageAnalyzer>>>();
private final Map<Long, Map<String, List<MessageAnalyzer>>> m_analyzers = new HashMap<Long, Map<String, List<MessageAnalyzer>>>();
@Override
public List<MessageAnalyzer> getAnalyzer(String name, long startTime) {
......@@ -57,8 +57,8 @@ public class DefaultMessageAnalyzerManager extends ContainerHolder
Map<String, List<MessageAnalyzer>> temp = m_analyzers.remove(startTime - m_duration * 2);
if (temp != null) {
for (List<MessageAnalyzer> anlyzers : temp.values()) {
for (MessageAnalyzer analyzer : anlyzers) {
for (List<MessageAnalyzer> analyzers : temp.values()) {
for (MessageAnalyzer analyzer : analyzers) {
analyzer.destroy();
}
}
......
......@@ -62,7 +62,7 @@ public final class TcpSocketReceiver implements LogEnabled {
private Logger m_logger;
private int m_port = 2280; // default port number from phone, C:2, A:2, T:8
private final int m_port = 2280; // default port number from phone, C:2, A:2, T:8
public synchronized void destory() {
try {
......
......@@ -29,7 +29,7 @@ public class ServerStatisticManager {
private volatile Statistic m_currentStatistic = null;
private volatile long m_currentMunite = -1;
private volatile long m_currentMinute = -1;
public void addBlockLoss(long total) {
getCurrentStatistic().addBlockLoss(total);
......@@ -92,11 +92,11 @@ public class ServerStatisticManager {
time = time - time % (60 * 1000);
if (time != m_currentMunite) {
if (time != m_currentMinute) {
synchronized (this) {
if (time != m_currentMunite) {
if (time != m_currentMinute) {
m_currentStatistic = m_serverState.findOrCreate(time);
m_currentMunite = time;
m_currentMinute = time;
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册