#!/usr/bin/env ruby

total = 0

File.readlines('devlog.txt').each do |line|
  if m = line.match(/(\d+) min/)
    total += m[1].to_i
  end
end

h = (total/60.0).round(1)

puts "I've been at this for #{total} minutes (about #{h} hours)."
