From 84a8897bf056878f0f2fa9db486031564cd8d965 Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 28 Jun 2026 00:27:14 -0600 Subject: [PATCH] it is techincally a ui --- cmd/pinger/index.html.tmpl | 42 ++++++++++++++++++++++++++++++++++++++ cmd/pinger/main.go | 2 +- 2 files changed, 43 insertions(+), 1 deletion(-) create mode 100644 cmd/pinger/index.html.tmpl diff --git a/cmd/pinger/index.html.tmpl b/cmd/pinger/index.html.tmpl new file mode 100644 index 0000000..5e33c8c --- /dev/null +++ b/cmd/pinger/index.html.tmpl @@ -0,0 +1,42 @@ + + +
+ +
+ +
+
+ + + diff --git a/cmd/pinger/main.go b/cmd/pinger/main.go index 506d092..48f4b06 100644 --- a/cmd/pinger/main.go +++ b/cmd/pinger/main.go @@ -187,7 +187,7 @@ func (s S) pingAndRecord(ctx context.Context) error { (start, ms, ok, to_id) VALUES ($1, $2, $3, $4) - `, record.start, record.ms.Milliseconds(), record.ok, toId); err != nil { + `, record.start.Unix(), record.ms.Milliseconds(), record.ok, toId); err != nil { log.Println("!", err) } }