projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
put in fix for arcluster bug
[spider.git]
/
perl
/
Timer.pm
diff --git
a/perl/Timer.pm
b/perl/Timer.pm
index 0c44278e05067723a8d0a5e25df430af2ada801c..281421f08d72394b13c54912d97fbb476d3ae0ba 100644
(file)
--- a/
perl/Timer.pm
+++ b/
perl/Timer.pm
@@
-41,17
+41,18
@@
sub handler
my $now = time;
# handle things on the timer chain
my $now = time;
# handle things on the timer chain
- for (@timerchain) {
- if ($now >= $_->{t}) {
- &{$_->{proc}}();
- $_->{t} = $now + $_->{interval} if exists $_->{interval};
+ my $t;
+ foreach $t (@timerchain) {
+ if ($now >= $t->{t}) {
+ &{$t->{proc}}();
+ $t->{t} = $now + $t->{interval} if exists $t->{interval};
}
}
}
sub DESTROY
{
}
}
}
sub DESTROY
{
- dbg('connll', "
Timer destroyed ($
notimers)");
- $notimers--;
+ dbg('connll', "
timer destroyed ($Timer::
notimers)");
+ $
Timer::
notimers--;
}
1;
}
1;