Permalink
Browse files

allow an optional export prefix in gc tuning specs

  • Loading branch information...
1 parent 0c5e765 commit 0d526e452cc93c6b8f9e9f705a96ddc93f62478c @skaes committed Aug 21, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/railsbench/perf_utils.rb
@@ -92,7 +92,7 @@ def unset_gc_variables
def load_gc_variables(gc_spec)
File.open_or_die("#{ENV['RAILS_ROOT']}/config/#{gc_spec}.gc").each_line do |line|
- ENV[$1] = $2 if line =~ /^(.*)=(.*)$/
+ ENV[$1] = $2 if line =~ /^(?:export )?(.*)=(.*)$/
end
end

0 comments on commit 0d526e4

Please sign in to comment.