35 lines
1.2 KiB
Diff
35 lines
1.2 KiB
Diff
From 7d5ad8f2dd87432b8f46ea5002400ee46cb6756a Mon Sep 17 00:00:00 2001
|
|
From: gaoruoshu <gaoruoshu@huawei.com>
|
|
Date: Wed, 9 Oct 2024 14:22:38 +0800
|
|
Subject: [PATCH] bugfix typo
|
|
|
|
---
|
|
src/python/sentryPlugins/avg_block_io/avg_block_io.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/src/python/sentryPlugins/avg_block_io/avg_block_io.py b/src/python/sentryPlugins/avg_block_io/avg_block_io.py
|
|
index b6b3b28..26a60c5 100644
|
|
--- a/src/python/sentryPlugins/avg_block_io/avg_block_io.py
|
|
+++ b/src/python/sentryPlugins/avg_block_io/avg_block_io.py
|
|
@@ -114,7 +114,7 @@ def read_config_lat_iodump(io_dic, config):
|
|
common_param = {}
|
|
lat_sec = None
|
|
if not config.has_section("latency"):
|
|
- logging.warning("Cannot find algorithm section in config file")
|
|
+ logging.warning("Cannot find latency section in config file")
|
|
else:
|
|
lat_sec = config["latency"]
|
|
|
|
@@ -122,7 +122,7 @@ def read_config_lat_iodump(io_dic, config):
|
|
if not config.has_section("iodump"):
|
|
logging.warning("Cannot find iodump section in config file")
|
|
else:
|
|
- lat_sec = config["iodump"]
|
|
+ iodump_sec = config["iodump"]
|
|
|
|
if not lat_sec and not iodump_sec:
|
|
return common_param
|
|
--
|
|
2.27.0
|
|
|