* VRFS-2155 fix passing of yellow
This commit is contained in:
parent
5b9987aa17
commit
7761c2e9a8
|
|
@ -74,7 +74,7 @@
|
|||
<td style="text-align:center">
|
||||
<span class="latency">
|
||||
<span class="latency-value"><%= (sess.latency / 2).round %> ms</span>
|
||||
<% if sess.latency <= (APP_CONFIG.max_good_full_score) %>
|
||||
<% if sess.latency <= (APP_CONFIG.max_good_full_score / 2) %>
|
||||
<%= image_tag("http://www.jamkazam.com/assets/content/icon_green_score.png", alt: 'good score icon') %>
|
||||
<% else %>
|
||||
<%= image_tag("http://www.jamkazam.com/assets/content/icon_yellow_score.png", alt: 'fair score icon') %>
|
||||
|
|
|
|||
|
|
@ -217,7 +217,7 @@ SQL
|
|||
def _collect_scored_recipients
|
||||
ActiveRecord::Base.connection.execute("DROP TABLE IF EXISTS tmp_matches")
|
||||
if !self.snapshot? || 0 == (max_score = ENV[ENV_MAX_LATENCY].to_i)
|
||||
max_score = APP_CONFIG.max_yellow_full_score * 2
|
||||
max_score = APP_CONFIG.max_yellow_full_score
|
||||
end
|
||||
limit_sql = (self.snapshot? && 0 < ENV[ENV_QUERY_LIMIT].to_i) ? "LIMIT #{ENV[ENV_QUERY_LIMIT]}" : ''
|
||||
sql =<<SQL
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ if defined?(Bundler)
|
|||
config.max_track_upload_failures = 10
|
||||
config.max_track_part_upload_failures = 3
|
||||
|
||||
# scoring thresholds for 'full score', which is 1/2 your gear + 1/2 their gear + and 1/2 ping time
|
||||
# scoring thresholds for 'full score', which is your gear + their gear + and ping time
|
||||
config.max_good_full_score = 40
|
||||
config.max_yellow_full_score = 70
|
||||
config.max_red_full_score = 100
|
||||
|
|
|
|||
Loading…
Reference in New Issue