From 4193ac224790c7df751266520abd593294788266 Mon Sep 17 00:00:00 2001 From: Mateusz Karlowski Date: Mon, 28 Jul 2025 09:53:07 +0200 Subject: [PATCH] [#80435] Skip shared memory device --- watch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/watch.py b/watch.py index f3810f1..6ff2320 100644 --- a/watch.py +++ b/watch.py @@ -376,6 +376,9 @@ def watch(session, fsdev, iface, tmpfs_color, other_cache_color): maxj, maxv = 0, 0 for j, free in enumerate(fs_data['MBfsfree']): v = stof(fs_data['MBfsfree'][j]) + stof(fs_data['MBfsused'][j]) + # Skip shared memory device + if fs_data["FILESYSTEM"][j] == "/dev/shm": + continue if maxv < v: maxj, maxv = j, v FS_SAR_INDEX = maxj