Browse Source

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

Toby Chui 3 năm trước cách đây
mục cha
commit
8025061288
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  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.");
                         }
                         
                     }