class Qwik::DailySendReportThread

Public Instance Methods

calc_sleep_time(w) click to toggle source
# File vendor/qwik/lib/qwik/site-report.rb, line 56
def calc_sleep_time(w)
  t = Time.at(w.to_i + 60*60*24)    # next day
  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 62
def process
  send('daily')
end