mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
don't set cpu_frequency if RubyProf resolved it
This commit is contained in:
@@ -319,7 +319,7 @@ begin
|
||||
|
||||
def initialize(*args)
|
||||
# FIXME: yeah my CPU is 2.33 GHz
|
||||
RubyProf.cpu_frequency = 2.33e9
|
||||
RubyProf.cpu_frequency = 2.33e9 unless RubyProf.cpu_frequency > 0
|
||||
super
|
||||
end
|
||||
|
||||
@@ -452,4 +452,4 @@ begin
|
||||
end
|
||||
end
|
||||
rescue LoadError
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user