error: Illegal modulus zero at /var/www/distats.html line 187.
context: ...
183:
184: my $hash = RRDs::info( $datafile );
185: my $hStep = $hash->{'step'};
186: my $lupdate = $hash->{'last_update'};
187: my $mid = $lupdate % $hStep;
188: print( "$lupdate % $hStep = $mid\n" );
189: $m->print( " ** lu=$lupdate, step=$hStep ref '" . ref($hStep) . "'\n" );
190: Dump $hStep;
191: $hStep='301';
...
code stack: /var/www/distats.html:187
/usr/share/cricket/lib/ConfigTree/Cache.pm:93
/usr/share/cricket/lib/ConfigTree/Cache.pm:90
/var/www/distats.html:18
/var/www/_content:13
/var/www/autohandler:40
I have elsewhere above my code:
One other factoid is that this is using Mason. Which shouldn't get in the way. I also have some Cricket includes as well, which you can see this is the result of a Cricket call back. Well... I guess this is where I strip out all the other code bits and just put this one bit of code in and see what happens.use strict; use warnings;
In reply to Re^4: implicit numeric conversion isn't
by stargrazer
in thread implicit numeric conversion isn't
by stargrazer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |