openwferu-scheduler 0.9.14 → 0.9.15.1110

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,8 +30,6 @@
30
30
  # POSSIBILITY OF SUCH DAMAGE.
31
31
  #++
32
32
  #
33
- # $Id: otime.rb 3509 2006-10-21 12:00:52Z jmettraux $
34
- #
35
33
 
36
34
  #
37
35
  # "hecho en Costa Rica"
@@ -574,7 +574,6 @@ module OpenWFE
574
574
  synchronize do
575
575
 
576
576
  now = Time.new
577
- minute = now.min
578
577
 
579
578
  if @exit_when_no_more_jobs
580
579
 
@@ -590,20 +589,18 @@ module OpenWFE
590
589
  #
591
590
  # cron entries
592
591
 
593
- if now.sec == 0 and
594
- (minute > @last_cron_minute or
595
- @last_cron_minute == 59)
592
+ if now.sec == 0 and now.min != @last_cron_minute
596
593
  #
597
594
  # only consider cron entries at the second 0 of a
598
595
  # minute
599
596
 
600
- @last_cron_minute = minute
597
+ @last_cron_minute = now.min
601
598
 
602
599
  #puts "step() @cron_entries.size #{@cron_entries.size}"
603
600
 
604
601
  @cron_entries.each do |cron_id, cron_entry|
605
602
  #puts "step() cron_id : #{cron_id}"
606
- trigger(cron_entry) if cron_entry.matches? now
603
+ trigger(cron_entry) if cron_entry.matches?(now)
607
604
  end
608
605
  end
609
606
 
@@ -639,6 +636,7 @@ module OpenWFE
639
636
  end
640
637
 
641
638
  def trigger (entry)
639
+
642
640
  Thread.new do
643
641
  begin
644
642
  entry.trigger
metadata CHANGED
@@ -1,10 +1,10 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.9.0
2
+ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: openwferu-scheduler
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.9.14
7
- date: 2007-09-18 00:00:00 +09:00
6
+ version: 0.9.15.1110
7
+ date: 2007-09-28 00:00:00 +09:00
8
8
  summary: OpenWFEru scheduler for Ruby (at, cron and every)
9
9
  require_paths:
10
10
  - lib