Changeset dbe5dea


Ignore:
Timestamp:
Apr 10, 2004 11:01:42 AM (17 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
8a8e681
Parents:
604af82
git-author:
shendaras <shendaras> (04/10/04 11:01:42)
git-committer:
zzz <zzz@…> (04/10/04 11:01:42)
Message:

120 code, 160 comments (shendaras)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/heartbeat/java/src/net/i2p/heartbeat/ClientConfig.java

    r604af82 rdbe5dea  
    9898     * @param averagePeriods list of minutes to summarize over
    9999     */
    100     public ClientConfig(Destination peer, Destination us, String statFile, int duration, int statFreq, int sendFreq, int sendSize, int numHops, String comment,
    101                         int averagePeriods[]) {
     100    public ClientConfig(Destination peer, Destination us, String statFile, int duration, int statFreq, int sendFreq,
     101                        int sendSize, int numHops, String comment, int averagePeriods[]) {
    102102        _peer = peer;
    103103        _us = us;
     
    311311        String periodsVal = clientConfig.getProperty(PROP_PREFIX + peerNum + PROP_AVERAGEPERIODS);
    312312
    313         if ((peerVal == null) || (statFileVal == null) || (statDurationVal == null) || (statFrequencyVal == null) || (sendFrequencyVal == null)
    314             || (sendSizeVal == null)) {
     313        if ((peerVal == null) || (statFileVal == null) || (statDurationVal == null) || (statFrequencyVal == null)
     314            || (sendFrequencyVal == null) || (sendSizeVal == null)) {
    315315            if (_log.shouldLog(Log.DEBUG)) {
    316316                _log.debug("Peer number " + peerNum + " does not exist");
     
    327327            if ((duration <= 0) || (statFreq <= 0) || (sendFreq <= 0) || (sendSize <= 0)) {
    328328                if (_log.shouldLog(Log.WARN)) {
    329                     _log.warn("Invalid client config: duration [" + statDurationVal + "] stat frequency [" + statFrequencyVal + "] send frequency ["
    330                               + sendFrequencyVal + "] send size [" + sendSizeVal + "]");
     329                    _log.warn("Invalid client config: duration [" + statDurationVal + "] stat frequency ["
     330                              + statFrequencyVal + "] send frequency [" + sendFrequencyVal + "] send size ["
     331                              + sendSizeVal + "]");
    331332                }
    332333                return false;
     
    390391     */
    391392    public boolean store(Properties clientConfig, int peerNum) {
    392         if ((_peer == null) || (_sendFrequency <= 0) || (_sendSize <= 0) || (_statDuration <= 0) || (_statFrequency <= 0) || (_statFile == null)) { return false; }
     393        if ((_peer == null) || (_sendFrequency <= 0) || (_sendSize <= 0) || (_statDuration <= 0)
     394            || (_statFrequency <= 0) || (_statFile == null)) { return false; }
    393395
    394396        String comment = _comment;
Note: See TracChangeset for help on using the changeset viewer.