wip
This commit is contained in:
1 parent
309c2b8a6e
commit
b656d5d993
1 file changed
+4
-4
@@ -234,19 +234,19 @@ class LoadPerformance
|
|||||||
$return = [];
|
$return = [];
|
||||||
foreach ($matches as $matchid) {
|
foreach ($matches as $matchid) {
|
||||||
if (isset($result[$matchid])) {
|
if (isset($result[$matchid])) {
|
||||||
$return['all'][] = $result[$matchid]['all']['rating'] / $result[$matchid]['all']['sum_min'];
|
$return['all'][] = round($result[$matchid]['all']['rating'] / $result[$matchid]['all']['sum_min'], 1);
|
||||||
if ($result[$matchid]['def']['sum_min']) {
|
if ($result[$matchid]['def']['sum_min']) {
|
||||||
$return['def'][] = $result[$matchid]['def']['rating'] / $result[$matchid]['def']['sum_min'];
|
$return['def'][] = round($result[$matchid]['def']['rating'] / $result[$matchid]['def']['sum_min'], 1);
|
||||||
} else {
|
} else {
|
||||||
$return['def'][] = null;
|
$return['def'][] = null;
|
||||||
}
|
}
|
||||||
if ($result[$matchid]['att']['sum_min']) {
|
if ($result[$matchid]['att']['sum_min']) {
|
||||||
$return['att'][] = $result[$matchid]['att']['rating'] / $result[$matchid]['att']['sum_min'];
|
$return['att'][] = round($result[$matchid]['att']['rating'] / $result[$matchid]['att']['sum_min'], 1);
|
||||||
} else {
|
} else {
|
||||||
$return['att'][] = null;
|
$return['att'][] = null;
|
||||||
}
|
}
|
||||||
if ($result[$matchid]['mid']['sum_min']) {
|
if ($result[$matchid]['mid']['sum_min']) {
|
||||||
$return['mid'][] = $result[$matchid]['mid']['rating'] / $result[$matchid]['mid']['sum_min'];
|
$return['mid'][] = round($result[$matchid]['mid']['rating'] / $result[$matchid]['mid']['sum_min'], 1);
|
||||||
} else {
|
} else {
|
||||||
$return['mid'][] = null;
|
$return['mid'][] = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user