X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=includes%2Flibs%2FXhprofData.php;h=5af22ed5b2081467ee303e28c995f35bba5702d4;hb=4fa7c42db953988058a1ed4e3813a06a04ae79f8;hp=0be4ff6ad851ff67f5b6e7614c46204161256d2b;hpb=fc5af1cb1c6fe7516fa045c90187d7def05223ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/libs/XhprofData.php b/includes/libs/XhprofData.php index 0be4ff6ad8..5af22ed5b2 100644 --- a/includes/libs/XhprofData.php +++ b/includes/libs/XhprofData.php @@ -18,7 +18,7 @@ * @file */ -use RunningStat\RunningStat; +use Wikimedia\RunningStat; /** * Convenience class for working with XHProf profiling data @@ -209,14 +209,14 @@ class XhprofData { foreach ( $this->inclusive as $func => $stats ) { foreach ( $stats as $name => $value ) { if ( $value instanceof RunningStat ) { - $total = $value->m1 * $value->n; + $total = $value->getMean() * $value->getCount(); $percent = ( isset( $main[$name] ) && $main[$name] ) ? 100 * $total / $main[$name] : 0; $this->inclusive[$func][$name] = [ 'total' => $total, 'min' => $value->min, - 'mean' => $value->m1, + 'mean' => $value->getMean(), 'max' => $value->max, 'variance' => $value->m2, 'percent' => $percent,