mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Fix division by zero if no sampling data is present.
This commit is contained in:
parent
76e2ae484b
commit
87c3796e84
@ -12531,7 +12531,7 @@ void View::DrawStatistics()
|
|||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
|
|
||||||
double revSampleCount100;
|
double revSampleCount100;
|
||||||
if( m_statRange.active )
|
if( m_statRange.active && m_worker.GetSamplingPeriod() != 0 )
|
||||||
{
|
{
|
||||||
const auto st = m_statRange.max - m_statRange.min;
|
const auto st = m_statRange.max - m_statRange.min;
|
||||||
const auto cnt = st / m_worker.GetSamplingPeriod();
|
const auto cnt = st / m_worker.GetSamplingPeriod();
|
||||||
|
Loading…
Reference in New Issue
Block a user