Browse Source

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

Toby Chui 3 years ago
parent
commit
8025061288
1 changed files with 3 additions and 1 deletions
  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.");
                         }
                         
                     }