Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Exception: wrong number of arguments
- Total HTTP Requests 4
- Total GIF Requests
- counter = 1
- begin
- file = File.new("performance.log", "r")
- while (line = file.gets)
- #puts "#{counter}: #{line}"
- counter = counter + 1
- total = counter
- if line =~ /gif/
- gifCount = line.count
- end
- end
- file.close
- rescue => err
- puts "Exception: #{err}"
- err
- end
- puts "Total HTTP Requests #{total}"
- puts "Total GIF Requests #{gifCount}"
Add Comment
Please, Sign In to add comment