mark % on stat page
This commit is contained in:
parent
266a114e78
commit
93327df6f7
1 changed files with 4 additions and 1 deletions
|
@ -52,6 +52,8 @@
|
||||||
|
|
||||||
uasort($pr,'cmp');
|
uasort($pr,'cmp');
|
||||||
|
|
||||||
|
$sum = array_sum($pr);
|
||||||
|
|
||||||
foreach ($pr as $usern => $rr) { ?>
|
foreach ($pr as $usern => $rr) { ?>
|
||||||
<div class='comment'>
|
<div class='comment'>
|
||||||
<div class="avatar">
|
<div class="avatar">
|
||||||
|
@ -65,7 +67,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div><b>Rank</b>: <?php echo (int)($rr * 10) ?></div>
|
<div><b>Power</b>: <?php echo (int)($rr * 10) ?></div>
|
||||||
|
<div><b>Distribution</b>: <?php echo ($rr / $sum * 100) . "%" ?></div>
|
||||||
</div>
|
</div>
|
||||||
<?php }
|
<?php }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue