From 3e5f56b19b43e98b541e07a904091706173f6e46 Mon Sep 17 00:00:00 2001 From: shendaras <shendaras> Date: Sat, 10 Apr 2004 10:17:32 +0000 Subject: [PATCH] final? (shendaras) --- .../src/net/i2p/heartbeat/ClientConfig.java | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/apps/heartbeat/java/src/net/i2p/heartbeat/ClientConfig.java b/apps/heartbeat/java/src/net/i2p/heartbeat/ClientConfig.java index 4d733187eb..4317694d7a 100644 --- a/apps/heartbeat/java/src/net/i2p/heartbeat/ClientConfig.java +++ b/apps/heartbeat/java/src/net/i2p/heartbeat/ClientConfig.java @@ -14,27 +14,16 @@ import net.i2p.util.Log; * */ public class ClientConfig { - private static final Log _log = new Log(ClientConfig.class); - private Destination _peer; - private Destination _us; - private String _statFile; - private int _statDuration; - private int _statFrequency; - private int _sendFrequency; - private int _sendSize; - private int _numHops; - private String _comment; - private int _averagePeriods[]; /** @@ -370,8 +359,8 @@ public class ClientConfig { if ((duration <= 0) || (statFreq <= 0) || (sendFreq <= 0) || (sendSize <= 0)) { if (_log.shouldLog(Log.WARN)) { _log.warn("Invalid client config: duration [" + statDurationVal + "] stat frequency [" - + statFrequencyVal + "] send frequency [" + sendFrequencyVal + "] send size [" + sendSizeVal - + "]"); + + statFrequencyVal + "] send frequency [" + sendFrequencyVal + "] send size [" + + sendSizeVal + "]"); } return false; } @@ -436,8 +425,8 @@ public class ClientConfig { * @return true if it was stored correctly, false if there were errors */ public boolean store(Properties clientConfig, int peerNum) { - if ((_peer == null) || (_sendFrequency <= 0) || (_sendSize <= 0) || (_statDuration <= 0) || (_statFrequency <= 0) - || (_statFile == null)) { return false; } + if ((_peer == null) || (_sendFrequency <= 0) || (_sendSize <= 0) || (_statDuration <= 0) + || (_statFrequency <= 0) || (_statFile == null)) { return false; } String comment = _comment; if (comment == null) { -- GitLab