diff options
Diffstat (limited to 'health-model.lua')
-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 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 |