diff options
-rw-r--r-- | health-model.lua | 2 | ||||
-rw-r--r-- | password-model.lua | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/health-model.lua b/health-model.lua index 374368d..e99c139 100644 --- a/health-model.lua +++ b/health-model.lua @@ -24,7 +24,7 @@ end local function getpercentage ( data,grep,field1,field2 ) local debugoutput = "" - local grepline = format.string_to_table("%s+" ,string.match(data,grep .. ".*")) + local grepline = format.string_to_table(string.match(data,grep .. ".*"),"%s+") local val1percentage = math.floor(((grepline[field1] / (grepline[field1]+grepline[field2]))*100)+0.5) return val1percentage end diff --git a/password-model.lua b/password-model.lua index 2f81bff..e4dfb22 100644 --- a/password-model.lua +++ b/password-model.lua @@ -7,7 +7,7 @@ require "format" get = function (self) --hardcoded for root now f = format.search_for_lines("/etc/shadow", "root:") - temp = format.string_to_table(":", f) + temp = format.string_to_table(f,":") if temp[2] == "!" then status = "not set" else |