lib/wmap/domain_tracker.rb
# Count numbers of entries in the domain cache table
Count numbers of entries in the domain cache table
Count numbers of entries in the domain cache table
def count
		puts "Counting number of entries in the domain cache table ..."
		cnt=0
		@known_internet_domains.map do |key|
			unless key =~ /\w+\.\w+/
				cnt=cnt+1
			end
		end
		puts "Current number of entries: #{cnt}"
		return cnt
	rescue => ee
		puts "Exception on method #{__method__}: #{ee}" if @verbose
	end
def count puts "Counting number of entries in the domain cache table ..." cnt = 0 @known_internet_domains . map do | key | unless key =~ / \w + \. \w + / cnt = cnt + 1 end end puts "Current number of entries: #{cnt}" return cnt rescue => ee puts "Exception on method #{__method__}: #{ee}" if @verbose end
Count numbers of entries in the domain cache table
Count numbers of entries in the domain cache table