File: calc_delta.rb

package info (click to toggle)
ruby-packetfu 2.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,520 kB
  • sloc: ruby: 8,344; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 293 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'benchmark'
require 'pp'

before = ARGV.shift
after = ARGV.shift

fio = File.open(before)
before_data = Marshal.load(fio)
fio.close

fio = File.open(after)
after_data = Marshal.load(fio)
fio.close

before_data.each_with_index do |data, i|
  puts (data.total / after_data[i].total)
end