summaryrefslogtreecommitdiffstats
path: root/weblog-model.lua
diff options
context:
space:
mode:
Diffstat (limited to 'weblog-model.lua')
-rw-r--r--weblog-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/weblog-model.lua b/weblog-model.lua
index 1d67739..6ebc766 100644
--- a/weblog-model.lua
+++ b/weblog-model.lua
@@ -548,7 +548,7 @@ local parsedglog = function(logdata)
local logentry = {logdatetime=words[1], clientuserid=words[2], clientip=words[3], URL=words[4], reason=words[5], method=words[6], bytes=words[7], shortreason=words[9]}
if logentry.reason ~= "" then
if logentry.shortreason == "" then logentry.shortreason = logentry.reason end
- logentry.score = string.match(logentry.reason, "^.*: ([0-9]*) ")
+ logentry.score = string.match(logentry.reason, "^.*: ([0-9]+) ")
logentry.logdatetime = string.gsub(logentry.logdatetime, "%.", "-")
logentries[#logentries+1] = logentry