2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-01-31 12:49:34 +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:
Sailor 2017-05-01 08:56:42 +00:00
parent f0c613aca4
commit 4502984312

View File

@ -1777,8 +1777,9 @@ 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,10 +2332,9 @@ 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)
{
### Increment Service-Index
@ -2830,9 +2830,8 @@ 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)
{