Efficiency, the sequel!

This commit is contained in:
ehpersonal38
2022-05-17 18:54:48 -04:00
parent ee675c4de2
commit 5178a98766
+6
View File
@@ -319,6 +319,12 @@ if(isset($_GET['filename'])){
$confidence = $results['Confidence'];
$filename_formatted = $date."/".$comname."/".$results['File_Name'];
// add disk_check_exclude.txt lines into an array for grepping
$fp = @fopen($home."/BirdNET-Pi/scripts/disk_check_exclude.txt", 'r');
if ($fp) {
$disk_check_exclude_arr = explode("\n", fread($fp, filesize($home."/BirdNET-Pi/scripts/disk_check_exclude.txt")));
}
if($config["FULL_DISK"] == "purge") {
if(!in_array($filename_formatted, $disk_check_exclude_arr)) {
$imageicon = "images/unlock.svg";