mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-01-31 12:49:34 +00:00
fhem.pl: fix rare HandleArchiving Bug (Forum #112500)
git-svn-id: https://svn.fhem.de/fhem/trunk@22293 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
4d944a7dce
commit
338d406b2b
@ -3937,7 +3937,7 @@ HandleArchiving($;$)
|
||||
$dir = ResolveDateWildcards($dir, @t);
|
||||
return if(!opendir(DH, $dir));
|
||||
my @files = sort grep {/^$file$/} readdir(DH);
|
||||
@files = sort { (stat("$dir/$a"))[9] cmp (stat("$dir/$b"))[9] } @files
|
||||
@files = sort { (stat("$dir/$a"))[9] <=> (stat("$dir/$b"))[9] } @files
|
||||
if(AttrVal("global", "archivesort", "alphanum") eq "timestamp");
|
||||
closedir(DH);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user