class Qwik::HourlySendReportThread

Public Instance Methods

calc_sleep_time(w) click to toggle source
# File vendor/qwik/lib/qwik/site-report.rb, line 68
def calc_sleep_time(w)
  t = Time.at(w.to_i + 60*60)       # next hour
  nxt = Time.local(t.year, t.mon, t.day, t.hour, 0, 0, 0)   # next
  return (nxt - w).to_i
end
process() click to toggle source
# File vendor/qwik/lib/qwik/site-report.rb, line 74
def process
  send('hourly')
end