don't set cpu_frequency if RubyProf resolved it

This commit is contained in:
Gonçalo Silva
2010-06-12 11:29:26 +01:00
committed by wycats
parent bf6661c5d7
commit 381a30fbba

View File

@@ -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