wip
This commit is contained in:
1 parent
2bb0915fce
commit
8e0671b4c5
1 file changed
+2
-1
@@ -138,7 +138,8 @@ class StatsMedianAverage extends StatsOverviewWidget
|
|||||||
return round(($arr[$m1] + $arr[$m2]) / 2, 2);
|
return round(($arr[$m1] + $arr[$m2]) / 2, 2);
|
||||||
} else {
|
} else {
|
||||||
// odd (add 1 because array starts with 0)
|
// odd (add 1 because array starts with 0)
|
||||||
$m = ($size - 1) / 2;
|
$m = ceil(($size) / 2);
|
||||||
|
|
||||||
// dd('UNGERADE', $m, $arr, $arr[$m]);
|
// dd('UNGERADE', $m, $arr, $arr[$m]);
|
||||||
return $arr[$m];
|
return $arr[$m];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user