测试集内存使用情况

dev_forum
jingquan huang 6 years ago
parent ae4e65296c
commit fc4be36aa7

@ -855,7 +855,7 @@ class GamesController < ApplicationController
if max_query_index > 0
uid_logger("max_query_index is #{max_query_index} game id is #{@game.id}, challenge_id is #{challenge.id}")
@qurey_test_sets = TestSet.find_by_sql("SELECT o.code, o.actual_output, o.out_put, o.result, o.test_set_position, o.ts_time,
@qurey_test_sets = TestSet.find_by_sql("SELECT o.code, o.actual_output, o.out_put, o.result, o.test_set_position, o.ts_time, o.ts_mem,
o.query_index, t.is_public, t.input, t.output, o.compile_success FROM outputs o, games g, challenges c,
test_sets t where g.id=#{@game.id} and c.id=#{challenge.id} and o.query_index=#{max_query_index}
and g.id = o.game_id and c.id= g.challenge_id and t.challenge_id = c.id and

@ -8,6 +8,7 @@ json.test_sets @qurey_test_sets do |test_set|
end
json.compile_success test_set.try(:compile_success)
json.ts_time test_set.try(:ts_time)
json.ts_time test_set.try(:ts_mem)
end
json.allowed_unlock @shixun.test_set_permission

Loading…
Cancel
Save