logging: fix bug where 97th percentile prints frametime instead of fps

pull/1103/head
Albert Sebastian 9 months ago committed by GitHub
parent 08152325d4
commit f295f9e835
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -88,7 +88,7 @@ static void writeSummary(string filename){
out << fixed << setprecision(1) << result << ",";
}
// 97th percentile
result = sorted.empty() ? 0.0f : sorted[floor(0.97 * (sorted.size() - 1))].frametime;
result = sorted.empty() ? 0.0f : 1000 / sorted[floor(0.97 * (sorted.size() - 1))].frametime;
out << fixed << setprecision(1) << result << ",";
// avg
total = 0;

Loading…
Cancel
Save