From 854bd1515aea041ee64b653a461610d1e45cb50a Mon Sep 17 00:00:00 2001 From: liuwei Date: Tue, 27 May 2025 09:22:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/GlancesMonitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/GlancesMonitor.py b/admin/GlancesMonitor.py index 1dac94b..9fce896 100644 --- a/admin/GlancesMonitor.py +++ b/admin/GlancesMonitor.py @@ -25,6 +25,7 @@ class GlancesMonitor: """ self.host = host self.port = port + self.api_url = f"http://{self.host}:{self.port}/api/3" self.cpu_threshold = cpu_threshold self.load_threshold = load_threshold or (self.get_cpu_count() * 2) self.io_threshold = io_threshold @@ -33,7 +34,6 @@ class GlancesMonitor: self.email_sender = email_sender self.recipient = recipient self.glances_process = None - self.api_url = f"http://{self.host}:{self.port}/api/3" self.last_alert_times = {} self._running = False