mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-10 09:16:53 +00:00
98_powerMap: fix sorting order, p.2
git-svn-id: https://svn.fhem.de/fhem/trunk@13337 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
6b2386a428
commit
13bc9be219
@ -1398,11 +1398,7 @@ sub powerMap_power($$$;$) {
|
||||
elsif ( looks_like_number($num) ) {
|
||||
my ( $val1, $val2 );
|
||||
|
||||
foreach (
|
||||
sort { $powerMap->{$reading}{$a} <=> $powerMap->{$reading}{$b} }
|
||||
keys( %{ $powerMap->{$reading} } )
|
||||
)
|
||||
{
|
||||
foreach ( sort { $a <=> $b } keys( %{ $powerMap->{$reading} } ) ) {
|
||||
next unless ( looks_like_number($_) );
|
||||
$val1 = $_ if ( $_ < $num );
|
||||
$val2 = $_ if ( $_ > $num );
|
||||
|
Loading…
x
Reference in New Issue
Block a user