From b7a62879255039728c0aa93fbd074b0a48b250a3 Mon Sep 17 00:00:00 2001 From: Michael Bai Date: Thu, 16 Sep 2021 14:33:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E7=A3=81=E7=9B=98?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=AD=89key=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/ops/notifications.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/apps/ops/notifications.py b/apps/ops/notifications.py index ac5973596..a0ed17b94 100644 --- a/apps/ops/notifications.py +++ b/apps/ops/notifications.py @@ -39,14 +39,14 @@ class ServerPerformanceCheckUtil(object): 'max_threshold': False, 'alarm_msg_format': _('The terminal is offline: {name}') }, - 'disk_usage': { + 'disk_used': { 'default': 0, 'max_threshold': 80, 'alarm_msg_format': _( '[Disk] Disk used more than {max_threshold}%: => {value} ({name})' ) }, - 'memory_usage': { + 'memory_used': { 'default': 0, 'max_threshold': 85, 'alarm_msg_format': _( @@ -82,7 +82,6 @@ class ServerPerformanceCheckUtil(object): default = data['default'] max_threshold = data['max_threshold'] value = getattr(self._terminal.stat, item, default) - print(value, max_threshold, self._terminal.name, self._terminal.id) if isinstance(value, bool) and value != max_threshold: return elif isinstance(value, (int, float)) and value < max_threshold: