mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Fixed offset in histogram with non-log time
This commit is contained in:
parent
c67d91c6ac
commit
72966a24a3
@ -5043,7 +5043,7 @@ void View::DrawFindZone()
|
||||
while( zit != sorted.end() && *zit == 0 ) zit++;
|
||||
for( int64_t i=0; i<numBins; i++ )
|
||||
{
|
||||
const auto nextBinVal = ( i+1 ) * zmax / numBins;
|
||||
const auto nextBinVal = tmin + ( i+1 ) * zmax / numBins;
|
||||
auto nit = std::lower_bound( zit, sorted.end(), nextBinVal );
|
||||
const auto distance = std::distance( zit, nit );
|
||||
const auto timeSum = std::accumulate( zit, nit, int64_t( 0 ) );
|
||||
|
Loading…
Reference in New Issue
Block a user