This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A quine is program that prints itself |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Usage, assuming that production.log is your rails log | |
# | |
# $ tail -f production.log | grep Completed | ruby tailor.rb <estimate> <size> | |
# | |
# * estimate is estimated number of requests per second (make it 50% larger) | |
# * size is length of every stat block(second, minute, hour) | |
# a line to print out | |
# | |
# @accept [Integer] num number of requests |