mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Perform proper division.
This commit is contained in:
parent
b2bbd95430
commit
add5c0fb87
@ -8844,7 +8844,7 @@ void View::DrawInfo()
|
||||
}
|
||||
else
|
||||
{
|
||||
const auto pxns = numBins / ( tmax - tmin );
|
||||
const auto pxns = numBins / double( tmax - tmin );
|
||||
const auto nspx = 1.0 / pxns;
|
||||
const auto scale = std::max<float>( 0.0f, round( log10( nspx ) + 2 ) );
|
||||
const auto step = pow( 10, scale );
|
||||
|
Loading…
Reference in New Issue
Block a user