소스 검색

Updated File Manager console.log for better printing debug message of huge file cutoff size

Toby Chui 3 년 전
부모
커밋
8025061288
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      web/SystemAO/file_system/file_explorer.html

+ 3 - 1
web/SystemAO/file_system/file_explorer.html

@@ -4682,9 +4682,11 @@
                     if (data.error !== undefined){
                       
                     }else{
-                        console.log("[File Explorer] Setting huge file cutoff size at: " + ao_module_utils.formatBytes(data.Avilable/16));
                         if (!isNaN(data.Avilable) && data.Avilable > 0){
                             largeFileCutoffSize = data.Avilable/16 - 4096;
+                            console.log("[File Explorer] Setting huge file cutoff size at: " + ao_module_utils.formatBytes(data.Avilable/16));
+                        }else if (isNaN(data.Avilable)){
+                            console.log("[File Explorer] Unable to read available tmp disk size. Using default huge file cutoff size.");
                         }
                         
                     }