diff --git a/APIServer.exe b/APIServer.exe index 0ddf7fa..0a87bec 100644 Binary files a/APIServer.exe and b/APIServer.exe differ diff --git a/ews/ews.go b/ews/ews.go index b971703..01b8d2e 100644 --- a/ews/ews.go +++ b/ews/ews.go @@ -5,6 +5,7 @@ import ( "database/sql" "fmt" "log" + "time" _ "github.com/go-sql-driver/mysql" ) @@ -610,21 +611,23 @@ func (e *EWS) GetOfflineReport(cfg cnf.Cfg, logger *log.Logger, host string, add } func (e *EWS) SimpleMsgHTML(clr, msg string) string { + now := time.Now().Format("2006-01-02 15:04:05") resp := fmt.Sprintf(` - + -
%s
+
[%s] %s
-`, clr, msg) +`, clr, now, msg) return resp } func (e *EWS) TemplateUutInfo(loc, locTime, misc, last, bkup string) string { + now := time.Now().Format("2006-01-02 15:04:05") if loc == "" { loc = `Unknown` } @@ -667,11 +670,12 @@ func (e *EWS) TemplateUutInfo(loc, locTime, misc, last, bkup string) string { font-family: Consolas; } span { - font-size: 14px; + font-size: 12px; font-family: Consolas; } + Response Time: %s

Location Info @@ -716,13 +720,14 @@ func (e *EWS) TemplateUutInfo(loc, locTime, misc, last, bkup string) string { %s
-`, loc, locTime, misc, last, bkup) +`, now, loc, locTime, misc, last, bkup) return resp } func (e *EWS) TemplateDefectInfo(src string) string { + now := time.Now().Format("2006-01-02 15:04:05") if src == "" { - src = `NO Records !` + src = fmt.Sprintf(`[%s] NO Records !
`, now) } resp := fmt.Sprintf(` @@ -759,6 +764,7 @@ func (e *EWS) TemplateDefectInfo(src string) string { } + Response Time: %s
@@ -778,6 +784,6 @@ func (e *EWS) TemplateDefectInfo(src string) string { %s
NO.
-`, src) +`, now, src) return resp }