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