* make the packet size configurabel
This commit is contained in:
parent
9249e99581
commit
36043ec631
|
|
@ -14,7 +14,7 @@
|
|||
RcvOnly: 5
|
||||
}
|
||||
var STARTING_NUM_CLIENTS = 4;
|
||||
var PAYLOAD_SIZE = 100;
|
||||
var PAYLOAD_SIZE = gon.global.ftue_network_test_packet_size;
|
||||
var MINIMUM_ACCEPTABLE_SESSION_SIZE = 2;
|
||||
|
||||
var gearUtils = context.JK.GearUtils;
|
||||
|
|
|
|||
|
|
@ -241,6 +241,8 @@ if defined?(Bundler)
|
|||
config.ftue_network_test_duration = 10
|
||||
# max number of people to test
|
||||
config.ftue_network_test_max_clients = 8
|
||||
# packet size (bytes) of test
|
||||
config.ftue_network_test_packet_size = 60
|
||||
# the maximum amount of allowable latency
|
||||
config.ftue_maximum_gear_latency = 20
|
||||
|
||||
|
|
@ -254,5 +256,6 @@ if defined?(Bundler)
|
|||
config.max_good_full_score = 20
|
||||
config.max_yellow_full_score = 35
|
||||
config.max_red_full_score = 50
|
||||
|
||||
end
|
||||
end
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
Gon.global.facebook_app_id = Rails.application.config.facebook_app_id
|
||||
Gon.global.env = Rails.env
|
||||
Gon.global.ftue_network_test_packet_size = Rails.application.config.ftue_network_test_packet_size
|
||||
Gon.global.env = Rails.env
|
||||
|
|
|
|||
Loading…
Reference in New Issue