lib/tunemygc/snapshotter.rb in tunemygc-1.0.58 vs lib/tunemygc/snapshotter.rb in tunemygc-1.0.59

- old
+ new

@@ -50,10 +50,12 @@ end end def _buffer(snapshot) if snapshot[3] =~ TERMINATED || size < MAX_SAMPLES - self.unit_of_work = true if snapshot[3] =~ UNITS_OF_WORK + unless self.unit_of_work + self.unit_of_work = true if snapshot[3] =~ UNITS_OF_WORK + end @buffer << snapshot else TuneMyGc.log "Discarding snapshot #{snapshot.inspect} (max samples threshold of #{MAX_SAMPLES} reached)" end end \ No newline at end of file