Do not call AnyEvent->now_update every 2 minutes, as it looks useless in this script
We reload all event hendlers if time skew in script own counter more
than 60 seconds as per ab68a26e84, no
other timekeeping issues are reported, so considering
AnyEvent->now_update useless for this particular usecase.
This commit is contained in:
@@ -153,13 +153,6 @@ sub add_events () {
|
||||
}
|
||||
|
||||
# Register callbacks/event handlers
|
||||
push @EP, AnyEvent->timer (
|
||||
after => 1,
|
||||
interval => 120,
|
||||
cb => sub {
|
||||
AnyEvent->now_update;
|
||||
},
|
||||
);
|
||||
|
||||
# Actually print messages there
|
||||
push @EP, AnyEvent->timer (
|
||||
|
||||
Reference in New Issue
Block a user