Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 6ad61e27

Přidáno uživatelem stepanekp před asi 3 roky(ů)

Bystander tasks ratio to percentage

Zobrazit rozdíly:

src/main/java/cz/zcu/fav/kiv/antipatterndetectionapp/detecting/detectors/BystanderApathyDetectorImpl.java
97 97
        resultDetails.add(new ResultDetail("Bystander tasks number", String.valueOf(bystanderAP)));
98 98

  
99 99
        float totalRatioOfBystanderTasks = (float) bystanderAP / workUnitsTotalCount;
100
        resultDetails.add(new ResultDetail("Bystander tasks ratio", String.format("%.02f", totalRatioOfBystanderTasks)));
100
        resultDetails.add(new ResultDetail("Bystander tasks ratio", String.format("%.02f", totalRatioOfBystanderTasks * 100) + "%"));
101 101

  
102 102
        if(totalRatioOfBystanderTasks > getMaximumPercentageOfTasksWithoutTeamwork(thresholds)) {
103 103
            resultDetails.add(new ResultDetail("Conclusion", "Tasks without other contributors besides author were detected."));

Také k dispozici: Unified diff