Index: src/cpu-profiler.cc |
diff --git a/src/cpu-profiler.cc b/src/cpu-profiler.cc |
index 8d11e7a00b7e60a6da6cac1c1a1a57e4b7b97740..f54e3e882e18ce31aeacda24c9297541e215e037 100644 |
--- a/src/cpu-profiler.cc |
+++ b/src/cpu-profiler.cc |
@@ -244,7 +244,7 @@ bool ProfilerEventsProcessor::ProcessTicks(unsigned dequeue_order) { |
// A paranoid check to make sure that we don't get a memory overrun |
// in case of frames_count having a wild value. |
if (record.sample.frames_count < 0 |
- || record.sample.frames_count >= TickSample::kMaxFramesCount) |
+ || record.sample.frames_count > TickSample::kMaxFramesCount) |
record.sample.frames_count = 0; |
generator_->RecordTickSample(record.sample); |
ticks_buffer_.FinishDequeue(); |