X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;ds=sidebyside;f=maintenance%2Fbenchmarks%2FbenchmarkTidy.php;h=357bf1b09c22f048ebef68391d0febe44d238d4c;hb=f725f4182a7b44a311761207cd95541c33f6abd7;hp=e9a30f9b1f42381ddabdb4888a76edd1e986f48c;hpb=329a72120e5f450e44b9a2c0c6dadaad1de9d43c;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/benchmarks/benchmarkTidy.php b/maintenance/benchmarks/benchmarkTidy.php index e9a30f9b1f..357bf1b09c 100644 --- a/maintenance/benchmarks/benchmarkTidy.php +++ b/maintenance/benchmarks/benchmarkTidy.php @@ -59,6 +59,7 @@ class BenchmarkTidy extends Benchmarker { $min = $times[0]; $max = end( $times ); if ( $n % 2 ) { + // @phan-suppress-next-line PhanTypeMismatchDimFetch $median = $times[ ( $n - 1 ) / 2 ]; } else { $median = ( $times[$n / 2] + $times[$n / 2 - 1] ) / 2; @@ -69,7 +70,7 @@ class BenchmarkTidy extends Benchmarker { print "Median: $median ms\n"; print "Mean: $mean ms\n"; print "Maximum: $max ms\n"; - print "Memory usage: " . $contLang->formatSize( memory_get_usage( true ) ) . "\n"; + print "Memory usage: " . $contLang->formatSize( memory_get_usage( true ) ) . "\n"; print "Peak memory usage: " . $contLang->formatSize( memory_get_peak_usage( true ) ) . "\n"; }