diff options
-rw-r--r-- | health-model.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/health-model.lua b/health-model.lua index 7a25c83..641a804 100644 --- a/health-model.lua +++ b/health-model.lua @@ -62,11 +62,11 @@ get_storage = function (self) local name = "/dev/none" storage.ramdisk.value[name] = cfe({ value=string.match(disk, "[^\n]*\n")..line, label="RAM Disk Capacity" }) storage.ramdisk.value[name].used = string.match(line, name.."%s*%S*%s*%S*%s*%S*%s*(%S*)%%") - elseif string.match(line, "^/dev/hd%a%d+") then + elseif string.match(line, "^/dev/[hs]d%a%d+") then if not storage.hd then storage.hd = cfe({ type="group", value={}, label="Hard drives" }) end - local name = string.match(line, "^(/dev/hd%a%d+)") + local name = string.match(line, "^(/dev/[hs]d%a%d+)") storage.hd.value[name] = cfe({ value=string.match(disk, "[^\n]*\n")..line, label="Hard Drive Capacity" }) storage.hd.value[name].used = string.match(line, name.."%s*%S*%s*%S*%s*%S*%s*(%S*)%%") end |