From 02edbf54ffc03700b307933e2e7e95ba8728d3ac Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 6 Oct 2017 18:32:25 +0200 Subject: [PATCH] Return signed value from GetLastTime(). --- server/TracyView.cpp | 4 ++-- server/TracyView.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 90b6125c..ebd6c2e3 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -775,9 +775,9 @@ uint64_t View::GetFrameEnd( size_t idx ) const } } -uint64_t View::GetLastTime() const +int64_t View::GetLastTime() const { - uint64_t last = 0; + int64_t last = 0; if( !m_frames.empty() ) last = m_frames.back(); for( auto& v : m_threads ) { diff --git a/server/TracyView.hpp b/server/TracyView.hpp index a14659a8..b95d7c15 100755 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -91,7 +91,7 @@ private: uint64_t GetFrameTime( size_t idx ) const; uint64_t GetFrameBegin( size_t idx ) const; uint64_t GetFrameEnd( size_t idx ) const; - uint64_t GetLastTime() const; + int64_t GetLastTime() const; int64_t GetZoneEnd( const Event& ev ) const; Vector& GetParentVector( const Event& ev ); const char* TimeToString( int64_t ns ) const;