mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-04-17 17:36:01 +00:00
108939: lexical subs
git-svn-id: https://svn.fhem.de/fhem/trunk@21345 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
fa5267496c
commit
16cf19a08f
@ -21,6 +21,9 @@
|
||||
|
||||
package main;
|
||||
|
||||
use 5.018;
|
||||
use feature qw( lexical_subs );
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use utf8;
|
||||
@ -278,7 +281,7 @@ sub GSI_ApiResponse {
|
||||
|
||||
# schedule
|
||||
my $next = (int(gettimeofday() / 3600) * 3600) + (3600 + 1800 + int(rand(1200)));
|
||||
$hash->{'API__NEXT_REQ'} = $next;
|
||||
$hash->{'API_NEXT_REQ'} = $next;
|
||||
InternalTimer($next, \&GSI_ApiRequest, $hash);
|
||||
|
||||
if ($hash->{'NEXT_EVENT'} and $hash->{'NEXT_EVENT'} > gettimeofday()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user