mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
98_weekprofile: load modules dynamically with require
git-svn-id: https://svn.fhem.de/fhem/trunk@24994 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
96218aeeef
commit
950d07753a
@ -12,7 +12,6 @@ use strict;
|
||||
use warnings;
|
||||
|
||||
use JSON; #libjson-perl
|
||||
use Data::Dumper;
|
||||
use Time::HiRes qw(gettimeofday);
|
||||
use Storable qw(dclone);
|
||||
|
||||
@ -774,6 +773,8 @@ sub sort_by_name
|
||||
##############################################
|
||||
sub dumpData($$$)
|
||||
{
|
||||
require Data::Dumper;
|
||||
|
||||
my ($hash,$prefix,$data) = @_;
|
||||
|
||||
my $me = $hash->{NAME};
|
||||
@ -1510,6 +1511,7 @@ sub weekprofile_createTempList($) {
|
||||
}
|
||||
|
||||
if (scalar(@values)>0) {
|
||||
require List::Util;
|
||||
$defMin = List::Util::min(@values);
|
||||
$defMax = List::Util::max(@values);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user