Skip to content

Commit c554a6d

Browse files
committed
refactor(cpu-usage): improve comment
1 parent 017ac8e commit c554a6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

check-plugins/cpu-usage/cpu-usage

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

3131

3232
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
33-
__version__ = '2025090701'
33+
__version__ = '2025090702'
3434

3535
DESCRIPTION = """Reports CPU utilization percentages for all available time categories
3636
(user, system, idle, nice, iowait, irq, softirq, steal, guest, guest_nice) plus the overall
@@ -247,7 +247,7 @@ def top(count):
247247
cnt = Counter()
248248
msg = f'\n\nTop {count} processes using the most cpu time:\n'
249249

250-
# Prefer attrs path (psutil >= 5.3.0)
250+
# Prefer attrs path (psutil >= 5.3.0): fewer syscalls, fewer exceptions
251251
if lib.version.version(psutil.__version__) >= lib.version.version('5.3.0'):
252252
try:
253253
# name + cpu_times are all we need

0 commit comments

Comments
 (0)