A tool for measuring the coverage of Bluesky/ATProto relays
9
fork

Configure Feed

Select the types of activity you want to include in your feed.

added an option to override duration

+5 -2
+4
opts.rb
··· 8 8 parser = OptionParser.new do |opts| 9 9 opts.banner = "Usage: #{$PROGRAM_NAME} [options]" 10 10 11 + opts.on('-d', '--duration SECONDS', Integer, 'Duration of the test in seconds') do |seconds| 12 + options[:duration] = seconds 13 + end 14 + 11 15 opts.on('-v', '--verbose', 'Report the statistics to stdout during the test') do 12 16 options[:verbose] = true 13 17 end
+1 -2
run_test.rb
··· 12 12 13 13 relays = config['relays'] || [] 14 14 jetstreams = config['jetstreams'] || [] 15 - duration = config['duration']&.to_i || 60 * 15 16 - 17 15 maxlen = (relays + jetstreams).map(&:length).max 18 16 19 17 options = parse_options(ARGV) 20 18 verbose = options[:verbose] 19 + duration = options[:duration] || config['duration']&.to_i || 60 * 15 21 20 22 21 Worker = Struct.new(:host, :pid, :pipe) 23 22 workers = []