summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2009-06-03 08:46:13 +0000
committerTed Trask <ttrask01@yahoo.com>2009-06-03 08:46:13 +0000
commitffd9cef9aa6f6ad989fa3a928e6e2a077651d055 (patch)
tree0423de040d3af622cf4c182718d62bdc4f08df57
parent29be5d0ed57b830f7efc9ea1cc08bb0be415b08d (diff)
downloadacf-alpine-baselayout-ffd9cef9aa6f6ad989fa3a928e6e2a077651d055.tar.bz2
acf-alpine-baselayout-ffd9cef9aa6f6ad989fa3a928e6e2a077651d055.tar.xz
Fixed bug with hard drive status.
-rw-r--r--health-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/health-model.lua b/health-model.lua
index 1ce0d4c..f8a0444 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