diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 7f5668dd..15a472aa 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -17262,7 +17262,7 @@ int64_t View::GetZoneChildTimeFast( const ZoneEvent& zone ) return time; } -int64_t View::GetZoneChildTimeFastClamped( const ZoneEvent& zone, uint64_t t0, uint64_t t1 ) +int64_t View::GetZoneChildTimeFastClamped( const ZoneEvent& zone, int64_t t0, int64_t t1 ) { int64_t time = 0; if( zone.HasChildren() ) @@ -17277,8 +17277,8 @@ int64_t View::GetZoneChildTimeFastClamped( const ZoneEvent& zone, uint64_t t0, u if( it == zitend ) return 0; while( it < zitend ) { - const auto c0 = std::max( it->Start(), t0 ); - const auto c1 = std::min( it->End(), t1 ); + const auto c0 = std::max( it->Start(), t0 ); + const auto c1 = std::min( it->End(), t1 ); time += c1 - c0; ++it; } @@ -17291,8 +17291,8 @@ int64_t View::GetZoneChildTimeFastClamped( const ZoneEvent& zone, uint64_t t0, u if( it == zitend ) return 0; while( it < zitend ) { - const auto c0 = std::max( (*it)->Start(), t0 ); - const auto c1 = std::min( (*it)->End(), t1 ); + const auto c0 = std::max( (*it)->Start(), t0 ); + const auto c1 = std::min( (*it)->End(), t1 ); time += c1 - c0; ++it; } diff --git a/server/TracyView.hpp b/server/TracyView.hpp index a53d8b7d..74a7b329 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -259,7 +259,7 @@ private: int64_t GetZoneChildTime( const ZoneEvent& zone ); int64_t GetZoneChildTime( const GpuEvent& zone ); int64_t GetZoneChildTimeFast( const ZoneEvent& zone ); - int64_t GetZoneChildTimeFastClamped( const ZoneEvent& zone, uint64_t t0, uint64_t t1 ); + int64_t GetZoneChildTimeFastClamped( const ZoneEvent& zone, int64_t t0, int64_t t1 ); int64_t GetZoneSelfTime( const ZoneEvent& zone ); int64_t GetZoneSelfTime( const GpuEvent& zone ); bool GetZoneRunningTime( const ContextSwitch* ctx, const ZoneEvent& ev, int64_t& time, uint64_t& cnt );