lib/tunemygc/spies/base.rb in tunemygc-1.0.49 vs lib/tunemygc/spies/base.rb in tunemygc-1.0.50
- old
+ new
@@ -15,10 +15,10 @@
def uninstall
raise NotImplementedError
end
def check_uninstall
- if ENV["RUBY_GC_TUNE"]
+ if ENV["RUBY_GC_TUNE"] && ENV["RUBY_GC_TUNE"] != ""
@limit ||= parse_gc_tune
@processed += 1
if @processed == @limit
uninstall
TuneMyGc.log "kamikaze after #{@processed} of #{@limit} units of work"
\ No newline at end of file