diff --git a/openwisp-monitoring/files/lib/openwisp-monitoring/resources.lua b/openwisp-monitoring/files/lib/openwisp-monitoring/resources.lua index 385db82..e91e8ae 100644 --- a/openwisp-monitoring/files/lib/openwisp-monitoring/resources.lua +++ b/openwisp-monitoring/files/lib/openwisp-monitoring/resources.lua @@ -13,7 +13,7 @@ function resources.parse_disk_usage() if line:sub(1, 10) ~= 'Filesystem' then local filesystem, size, used, available, percent, location = line:match( '(%S+)%s+(%S+)%s+(%S+)%s+(%S+)%s+(%S+)%s+(%S+)') - if filesystem ~= 'tmpfs' and not string.match(filesystem, 'overlayfs') then + if filesystem ~= 'tmpfs' and not string.match(filesystem, 'overlayfs') and not string.match(location, '/rom') then percent = percent:gsub('%W', '') -- available, size and used are in KiB table.insert(disk_usage_info, {