diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-06-03 09:11:16 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-06-03 09:11:16 +0000 |
commit | 4f2581ca73f8ff25e0e6e65c297581f50e4e9cdf (patch) | |
tree | cf6c7e5c2684be290e61ba3f4a75ed2287ac9239 | |
parent | 5de7174fc9ab85eb0500e2b2c2b16ee92f4ae1cf (diff) | |
download | acf-alpine-baselayout-4f2581ca73f8ff25e0e6e65c297581f50e4e9cdf.tar.bz2 acf-alpine-baselayout-4f2581ca73f8ff25e0e6e65c297581f50e4e9cdf.tar.xz |
Fixed bug with hard drive status.Alpine1.8_Fixes
-rw-r--r-- | health-model.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/health-model.lua b/health-model.lua index 663940b..5ee89aa 100644 --- a/health-model.lua +++ b/health-model.lua @@ -66,7 +66,7 @@ get_storage = function (self) if not storage.hd then storage.hd = cfe({ type="group", value={}, label="Hard drives" }) end - local name = string.match(line, "^(/dev/[hs]d%a%d+)") + local name = string.match(line, "^(%S+)") 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 |