mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-05-04 22:19:38 +00:00
73_km200.pm: bugfix: Errorlist unsorted timestamp part 2
git-svn-id: https://svn.fhem.de/fhem/trunk/fhem@14151 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
007a3ce343
commit
fe467ba1b1
@ -1777,7 +1777,8 @@ sub km200_GetSingleService($)
|
|||||||
my $TempErrorList = "";
|
my $TempErrorList = "";
|
||||||
|
|
||||||
### Sort list by timestamps descending
|
### Sort list by timestamps descending
|
||||||
my @TempSortedErrorList = sort { $b->{t} <=> $a->{t} } @{ $json->{values} };
|
my @TempSortedErrorList = sort { $b->{t} cmp $a->{t} } @{ $json->{values} };
|
||||||
|
# my @TempSortedErrorList = @{ $json->{values} } ;
|
||||||
|
|
||||||
### For every notification do
|
### For every notification do
|
||||||
foreach my $item (@TempSortedErrorList)
|
foreach my $item (@TempSortedErrorList)
|
||||||
@ -2331,9 +2332,8 @@ sub km200_ParseHttpResponseInit($)
|
|||||||
|
|
||||||
### Sort list by timestamps descending
|
### Sort list by timestamps descending
|
||||||
my $TempServiceIndex = 0;
|
my $TempServiceIndex = 0;
|
||||||
# my @TempSortedErrorList = sort { $b->{t} <=> $a->{t} } @{ $json->{values} };
|
my @TempSortedErrorList = sort { $b->{t} cmp $a->{t} } @{ $json->{values} };
|
||||||
my @TempSortedErrorList = sort ( @{ $json->{values} } );
|
# my @TempSortedErrorList = @{ $json->{values} };
|
||||||
|
|
||||||
|
|
||||||
foreach my $item (@TempSortedErrorList)
|
foreach my $item (@TempSortedErrorList)
|
||||||
{
|
{
|
||||||
@ -2830,8 +2830,7 @@ sub km200_ParseHttpResponseDyn($)
|
|||||||
|
|
||||||
### Sort list by timestamps descending
|
### Sort list by timestamps descending
|
||||||
my @TempSortedErrorList = sort { $b->{t} cmp $a->{t} } @{ $json->{values} };
|
my @TempSortedErrorList = sort { $b->{t} cmp $a->{t} } @{ $json->{values} };
|
||||||
my @TempSortedErrorList = sort ( @{ $json->{values} } );
|
# my @TempSortedErrorList = @{ $json->{values} } ;
|
||||||
|
|
||||||
|
|
||||||
### For every notification do
|
### For every notification do
|
||||||
foreach my $item (@TempSortedErrorList)
|
foreach my $item (@TempSortedErrorList)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user