Skip to content

Commit b4a8765

Browse files
committed
refactor(disk-io): improve comment
1 parent c554a6d commit b4a8765

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check-plugins/disk-io/disk-io

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ except ImportError:
3535

3636

3737
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
38-
__version__ = '2025090701'
38+
__version__ = '2025090702'
3939

4040
DESCRIPTION = """Checks disk I/O bandwidth over time and alerts on sustained saturation, not
4141
short spikes. The check records per-disk read/write counters and then derives current (R1/W1)
@@ -173,7 +173,7 @@ def top(count):
173173
totals = {} # name -> {'r': bytes, 'w': bytes}
174174
msg = ''
175175

176-
# Preferred path (psutil >= 5.3.0): pull only the attrs we need and avoid exceptions
176+
# Prefer attrs path (psutil >= 5.3.0): fewer syscalls, fewer exceptions
177177
if lib.version.version(psutil.__version__) >= lib.version.version('5.3.0'):
178178
try:
179179
for p in psutil.process_iter(attrs=['name', 'io_counters'], ad_value=None):

0 commit comments

Comments
 (0)