Sha256: 0b4a087bec27589f04d52ca3669805172b71408c60651f9c9be96352d0923fa7
Contents?: true
Size: 526 Bytes
Versions: 255
Compression:
Stored size: 526 Bytes
Contents
#!/usr/bin/env ruby require 'rbbt-util' require 'rbbt/util/simpleopt' $0 = "rbbt #{$previous_commands*""} #{ File.basename(__FILE__) }" if $previous_commands options = SOPT.setup <<EOF Monitor throughput $ rbbt tsv throughput Display summary information. Works with Tokyocabinet HDB and BDB as well. -h--help Help EOF SOPT.usage if options[:help] start = Time.now count = 0 max = 0 avg = 0 all = [] scale = 5 bar = Log::ProgressBar.new_bar nil, :desc => "Throughput" while line = STDIN.gets bar.tick end bar.done
Version data entries
255 entries across 255 versions & 1 rubygems