From 695290ec3235e0bbb6e40ce6b0d5bff8009f14d6 Mon Sep 17 00:00:00 2001 From: Jean-Louis Huynen Date: Fri, 7 Feb 2020 11:45:23 +0100 Subject: [PATCH] chg: [template] more stats --- logparser/sshd.go | 40 +++++++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 11 deletions(-) diff --git a/logparser/sshd.go b/logparser/sshd.go index 8d253c0..ac62677 100644 --- a/logparser/sshd.go +++ b/logparser/sshd.go @@ -332,22 +332,39 @@ func (s *SshdParser) Compile() error { + - + - - + + + + + + + + + +
@@ -448,6 +465,7 @@ func (s *SshdParser) Compile() error { YearList: years, MonthList: months, } + _ = os.Remove("statistics.html") f, err := os.OpenFile("statistics.html", os.O_RDWR|os.O_CREATE, 0666) defer f.Close() err = t.Execute(f, data)