From 5cef64d755632b5dfab181fe5a07b28983f7085a Mon Sep 17 00:00:00 2001 From: Caroline Larimore Date: Mon, 14 Apr 2025 22:34:22 -0700 Subject: fix timestamp --- status.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/status.go b/status.go index 970e044..d17b9d9 100644 --- a/status.go +++ b/status.go @@ -21,6 +21,7 @@ type response struct { func main() { var msg string = "" + var timestamp int64 = 0 var adminHash []byte var userHash []byte @@ -59,7 +60,7 @@ func main() { res := response{ Msg: msg, - Timestamp: time.Now().Unix(), + Timestamp: timestamp, } json, err := json.Marshal(res) @@ -107,8 +108,10 @@ func main() { return } - log.Print(string(buf)) msg = string(buf) + timestamp = time.Now().Unix() + + log.Print(string(buf)) w.Write([]byte("success")) return } -- cgit v1.2.3