This commit is contained in:
parent
7d81a52308
commit
8bf6ef4371
|
@ -40,7 +40,7 @@ module AccountHelper
|
||||||
if user.save
|
if user.save
|
||||||
tEndtime = Time.now
|
tEndtime = Time.now
|
||||||
tUsedtime = (tEndtime.to_i-tStarttime.to_i)*1000+(tEndtime.usec - tStarttime.usec)/1000
|
tUsedtime = (tEndtime.to_i-tStarttime.to_i)*1000+(tEndtime.usec - tStarttime.usec)/1000
|
||||||
logger.info "register_130 wait time = #{tUsedtime} ms"
|
Rails.logger.info "register_130 wait time = #{tUsedtime} ms"
|
||||||
UserStatus.create(:user_id => user.id, :changsets_count => 0, :watchers_count => 0)
|
UserStatus.create(:user_id => user.id, :changsets_count => 0, :watchers_count => 0)
|
||||||
#self.logged_user = user
|
#self.logged_user = user
|
||||||
#flash[:notice] = l(:notice_account_activated)
|
#flash[:notice] = l(:notice_account_activated)
|
||||||
|
@ -50,7 +50,7 @@ module AccountHelper
|
||||||
end
|
end
|
||||||
tEndtime = Time.now
|
tEndtime = Time.now
|
||||||
tUsedtime = (tEndtime.to_i-tStarttime.to_i)*1000+(tEndtime.usec - tStarttime.usec)/1000
|
tUsedtime = (tEndtime.to_i-tStarttime.to_i)*1000+(tEndtime.usec - tStarttime.usec)/1000
|
||||||
logger.info "register_131 wait time = #{tUsedtime} ms"
|
Rails.logger.info "register_131 wait time = #{tUsedtime} ms"
|
||||||
user
|
user
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue