diff --git a/apps/heartbeat/java/src/net/i2p/heartbeat/ClientConfig.java b/apps/heartbeat/java/src/net/i2p/heartbeat/ClientConfig.java index 4d733187eb7f390043615ace07e123ee9cab2ba6..4317694d7afc4e17f9bba0828c1d909a9679fb7d 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) {