Changeset 7280

Show
Ignore:
Timestamp:
02/29/08 11:16:49 (5 years ago)
Author:
wtnabe
Message:

lang/ruby/misc/rswatch.rb: @ignore_first の値によって @max_repeat の効き具合にズレがあった問題を修正

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/misc/rswatch.rb

    r7278 r7280  
    256256              if ( do_act ) 
    257257                if ( (@ignore_first and first) or 
    258                      (!@max_repeat.nil? and alerts > @max_repeat) ) 
     258                     (!@max_repeat.nil? and alerts >= @max_repeat) ) 
    259259                  ; 
    260260                else 
    261261                  action.send( @action, log.path, backlog ) 
     262                  alerts += 1 
    262263                end 
    263264                first   = false 
    264265                backlog = Array.new( @backline, '' ) 
    265                 alerts += 1 
    266266              end 
    267267            }