src/main/java/de/uapcore/lightpit/entities/IssueSummary.java

changeset 116
d24354f21df5
parent 86
0a658e53177c
child 126
4148e6de0f21
equal deleted inserted replaced
115:c27638a50c92 116:d24354f21df5
42 return total > 0 ? 100*active/total : 0; 42 return total > 0 ? 100*active/total : 0;
43 } 43 }
44 44
45 public int getDonePercent() { 45 public int getDonePercent() {
46 int total = getTotal(); 46 int total = getTotal();
47 return total > 0 ? 100*done/total : 0; 47 return total > 0 ? 100*done/total : 100;
48 } 48 }
49 49
50 /** 50 /**
51 * Adds the specified issue to the summary by increming the respective counter. 51 * Adds the specified issue to the summary by increming the respective counter.
52 * @param issue the issue 52 * @param issue the issue

mercurial