[jitsi-dev] [libjitsi] [ice4j] Agent.java getHarvestCount() method returns totalHarvestingTime instead of totalHarvestCount


#1

In Agent.java (lib ice4j), calling method getHarvestCount() returns
the same result as calling getTotalHarvestingTime().

In source code:

public int getHarvestCount()
    {
        int harvestCount = 0;

        for(CandidateHarvester harvester : harvesters)
        {
            harvestCount
                += harvester.getHarvestStatistics().getHarvestDuration();
        }

        return harvestCount;
    }

It must be:

public int getHarvestCount()
    {
        int harvestCount = 0;

        for(CandidateHarvester harvester : harvesters)
        {
            harvestCount
                += harvester.getHarvestStatistics().getHarvestCount();
        }

       return harvestCount;
    }

Luca


#2

На 23.07.2014 в 12:36, Luca Antonioli написа:

In Agent.java (lib ice4j), calling method getHarvestCount() returns
the same result as calling getTotalHarvestingTime().

Thank you very much, Luca.


#3

На 23.07.2014 в 12:36, Luca Antonioli написа:

In Agent.java (lib ice4j), calling method getHarvestCount() returns
the same result as calling getTotalHarvestingTime().

Revision 416 of ice4j addresses the issue.