2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-04-23 14:46:24 +00:00

01_FHEMWEB.pm: Fix sorting of logfiles from 1970 (Forum #69155)

git-svn-id: https://svn.fhem.de/fhem/trunk@13849 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig 2017-03-29 20:11:18 +00:00
parent 95e0f667a2
commit 4b3126d766

View File

@ -1879,7 +1879,7 @@ FW_fileList($;$)
push(@ret, $f);
}
closedir(DH);
return sort { (CORE::stat("$dir/$a"))[9] cmp (CORE::stat("$dir/$b"))[9] }
return sort { (CORE::stat("$dir/$a"))[9] <=> (CORE::stat("$dir/$b"))[9] }
@ret if($mtime);
@ret = cfgDB_FW_fileList($dir,$re,@ret) if (configDBUsed());
return sort @ret;