aboutsummaryrefslogtreecommitdiff
path: root/cmd/main/http.go
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-06-09 17:55:50 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-06-09 17:55:50 -0400
commit1d1f6d4fd023e0f9b9851aff259a0b9f022ed13f (patch)
tree068b2bc821ca76cf2fbb371e57e28279d547347a /cmd/main/http.go
parent6ec85b96ad4fee6ec1767f6b78f92a38ce658a06 (diff)
downloadcheckup-1d1f6d4fd023e0f9b9851aff259a0b9f022ed13f.tar.gz
checkup-1d1f6d4fd023e0f9b9851aff259a0b9f022ed13f.tar.xz
Add a nag option ( RenotifyInterval )
Diffstat (limited to 'cmd/main/http.go')
-rw-r--r--cmd/main/http.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/main/http.go b/cmd/main/http.go
index fd6169e..8eb4990 100644
--- a/cmd/main/http.go
+++ b/cmd/main/http.go
@@ -3,6 +3,7 @@ package main
import (
"bytes"
"fmt"
+ "time"
"riedstra.dev/go/checkup"
)
@@ -22,6 +23,7 @@ func httpStatusWorker(jobs <-chan httpCheck, msg chan<- *jobResponse, timeout in
Id: hc.URL + "->" + string(hc.Code),
Message: s,
Err: err,
+ Time: time.Now(),
}
continue
}