mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-09-27 22:17:32 +02:00
Fix for activity pie
This commit is contained in:
parent
45279da849
commit
f1e3fe7a7e
@ -23,7 +23,7 @@ public class ActivityPieChartCreator {
|
||||
*/
|
||||
public static String createChart(int totalBanned, int active, int inactive, int joinleaver) {
|
||||
|
||||
int total = totalBanned + active + inactive;
|
||||
int total = totalBanned + active + inactive + joinleaver;
|
||||
|
||||
int banPerc = (int) ((totalBanned * 1.0 / total) * 100);
|
||||
int inacPerc = (int) ((inactive * 1.0 / total) * 100);
|
||||
|
Loading…
Reference in New Issue
Block a user