Module: Resque::Plugins::JobStats::Timeseries::Common
Instance Method Summary collapse
-
#timestamp ⇒ Object
A timestamp rounded to the lowest minute.
Instance Method Details
#timestamp ⇒ Object
A timestamp rounded to the lowest minute
13 14 15 16 |
# File 'lib/resque/plugins/job_stats/timeseries.rb', line 13 def time = Time.now.utc Time.at(time.to_i - time.sec).utc # to_i removes usecs end |