Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

Commit 95999f0

Browse files
committed
bot.mirror: fix typo error
1 parent 23ed5c1 commit 95999f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bot/plugins/mirror.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ def mirror_monitor(m)
3434
offset = Time.now - Time.parse(sprintf("%s %s:%s:%s", date, h, m, s))
3535
if offset >= 5400 # 3600 + 1800 aka 1.5 hours
3636
m.reply "!! Warning: Mirror is out-of-sync. Last update is #{offset / 60} minutes ago" \
37-
unless _cache_expired(:mirror, "cron_warning", :cache_time => 1800)
37+
unless _cache_expired?(:mirror, "cron_warning", :cache_time => 1800)
3838
end
3939
else
4040
m.reply "!! Error: Invalid curl data found" \
41-
unless _cache_expired(:mirror, "cron_error", :cache_time => 1800)
41+
unless _cache_expired?(:mirror, "cron_error", :cache_time => 1800)
4242
end
4343
return @curl_data
4444
end

0 commit comments

Comments
 (0)