浏览代码

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){
                     if (data.error !== undefined){
                       
                       
                     }else{
                     }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){
                         if (!isNaN(data.Avilable) && data.Avilable > 0){
                             largeFileCutoffSize = data.Avilable/16 - 4096;
                             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.");
                         }
                         }
                         
                         
                     }
                     }