mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-01 17:34:36 +00:00
Fix savings calculation.
This commit is contained in:
parent
8983e14e18
commit
73f09de29d
@ -968,7 +968,7 @@ void View::DrawCompare()
|
|||||||
TextFocused( "Savings:", TimeToString( total1 * adj1 - total0 * adj0 ) );
|
TextFocused( "Savings:", TimeToString( total1 * adj1 - total0 * adj0 ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
char buf[64];
|
char buf[64];
|
||||||
PrintStringPercent( buf, ( total0 * adj0 ) / ( total1 * adj1 ) * 100 );
|
PrintStringPercent( buf, (1.0 - ( total0 * adj0 ) / ( total1 * adj1 )) * 100 );
|
||||||
TextDisabledUnformatted( buf );
|
TextDisabledUnformatted( buf );
|
||||||
TextFocused( "Max counts:", cumulateTime ? TimeToString( maxVal ) : RealToString( floor( maxVal ) ) );
|
TextFocused( "Max counts:", cumulateTime ? TimeToString( maxVal ) : RealToString( floor( maxVal ) ) );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user