Browse Source

Added retry logic for system usage

Toby Chui 1 year ago
parent
commit
88d507fa6f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      web/SystemAO/info/taskManager.html

+ 6 - 0
web/SystemAO/info/taskManager.html

@@ -443,6 +443,12 @@
                         updateData();
                         updateData();
                     }, 100);
                     }, 100);
                 },
                 },
+                error: function(){
+                    //Error, retry in 5 seconds
+                    setTimeout(function(){
+                        updateData();
+                    }, 5000);
+                },
                 timeout: 2000
                 timeout: 2000
             });
             });
         }
         }