This is an automated email from the ASF dual-hosted git repository.

zhaoqingran pushed a commit to branch bugfix-interval
in repository https://gitbox.apache.org/repos/asf/hertzbeat.git

commit d8685302c5db698e81941dc88fa945d5115723c4
Author: zqr10159 <[email protected]>
AuthorDate: Tue Jul 23 23:33:30 2024 +0800

    fix(monitor-list): correct setInterval time interval to 2 minutes
    
    Correct the setInterval function timing in monitor-list.component.ts to 
ensure
    the table refreshes every 2 minutes as intended. The previous code 
incorrectly
    specified the interval as12,000 milliseconds instead of the intended 120,000
    milliseconds.
---
 web-app/src/app/routes/monitor/monitor-list/monitor-list.component.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/web-app/src/app/routes/monitor/monitor-list/monitor-list.component.ts 
b/web-app/src/app/routes/monitor/monitor-list/monitor-list.component.ts
index ee106f31c..ad3b36a26 100644
--- a/web-app/src/app/routes/monitor/monitor-list/monitor-list.component.ts
+++ b/web-app/src/app/routes/monitor/monitor-list/monitor-list.component.ts
@@ -106,7 +106,7 @@ export class MonitorListComponent implements OnInit, 
OnDestroy {
     // Set up an interval to refresh the table every 2 minutes
     this.intervalId = setInterval(() => {
       this.sync();
-    }, 12000); // 120000 ms = 2 minutes
+    }, 120000); // 120000 ms = 2 minutes
   }
 
   ngOnDestroy(): void {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to