Try (mismatches += 1). "++" is not an operator in Ruby, and is interpreted as +(+(mismatches)).
- Sam Ruby On Mon, Jul 12, 2021 at 7:32 PM <c...@apache.org> wrote: > > This is an automated email from the ASF dual-hosted git repository. > > clr pushed a commit to branch master > in repository https://gitbox.apache.org/repos/asf/whimsy.git > > > The following commit(s) were added to refs/heads/master by this push: > new cbf6fad LDAP-namecheck print header each 30 rows > cbf6fad is described below > > commit cbf6fadae3e85eefc09abe96593e1f6b3b8ff243 > Author: Craig L Russell <apache....@gmail.com> > AuthorDate: Mon Jul 12 16:32:10 2021 -0700 > > LDAP-namecheck print header each 30 rows > --- > www/members/ldap-namecheck.cgi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/www/members/ldap-namecheck.cgi b/www/members/ldap-namecheck.cgi > index d6247ad..5b60a8e 100755 > --- a/www/members/ldap-namecheck.cgi > +++ b/www/members/ldap-namecheck.cgi > @@ -97,7 +97,7 @@ _html do > next > end > > - if ++mismatches % 30 == 0 # repeat header every 30 lines > + if 0 == ((++mismatches) % 30) # repeat header every 30 lines > _tr do > _td 'uid' > _td "iclas.txt public name"