0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-26 18:38:52 +02:00

modules/console: Fix total cycle regression due to API change.

This commit is contained in:
Jason Volk 2019-08-04 16:02:52 -07:00
parent 327130ecb7
commit fd23deefb8

View file

@ -2173,7 +2173,7 @@ console_cmd__ctx__list(opt &out, const string_view &line)
out << " "
<< std::setw(15) << std::right << cycles(ctx);
const long double total_cyc(ctx::prof::get(ctx, ctx::prof::event::CYCLES));
const long double total_cyc(ctx::prof::get(ctx::prof::event::CYCLES));
const auto tsc_pct
{
total_cyc > 0.0? (cycles(ctx) / total_cyc) : 0.0L