1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use proper type.

This commit is contained in:
Bartosz Taudul 2018-06-07 13:30:46 +02:00
parent 6956aed769
commit 2be1d1d2b2

View File

@ -1509,7 +1509,7 @@ void Worker::ProcessZoneEnd( const QueueZoneEnd& ev )
it->second.total += timeSpan;
for( auto& v : zone->child )
{
const auto childSpan = std::max( 0ll, v->end - v->start );
const auto childSpan = std::max( int64_t( 0 ), v->end - v->start );
timeSpan -= childSpan;
}
it->second.selfTotal += timeSpan;
@ -2103,7 +2103,7 @@ void Worker::ReadTimeline( FileRead& f, Vector<ZoneEvent*>& vec, uint16_t thread
it->second.total += timeSpan;
for( auto& v : zone->child )
{
const auto childSpan = std::max( 0ll, v->end - v->start );
const auto childSpan = std::max( int64_t( 0 ), v->end - v->start );
timeSpan -= childSpan;
}
it->second.selfTotal += timeSpan;