class Qwik::WeeklySendReportThread

Public Instance Methods

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