diff --git a/services/website/html.go b/services/website/html.go index daa013a..e19dc0f 100644 --- a/services/website/html.go +++ b/services/website/html.go @@ -5,6 +5,7 @@ import ( "text/template" "time" + "github.com/dustin/go-humanize" "github.com/flashbots/relayscan/database" ) @@ -63,6 +64,7 @@ var funcMap = template.FuncMap{ "relayTable": relayTable, "builderTable": builderTable, "builderProfitTable": builderProfitTable, + "humanTime": humanize.Time, } func ParseIndexTemplate() (*template.Template, error) { diff --git a/services/website/templates/index.html b/services/website/templates/index.html index 0eb008f..6d88c81 100644 --- a/services/website/templates/index.html +++ b/services/website/templates/index.html @@ -6,10 +6,12 @@

MEV-Boost Analytics

- -

- Updated {{ .LastDataTimeString }} UTC / Slot {{ .LastUpdateSlot }} / 7 minutes ago
+

+ + Updated {{ .LastDataTimeString }} UTC / Slot {{ .LastUpdateSlot }}
+ ({{ .LastDataTime | humanTime }}) +

Overview @@ -170,6 +172,47 @@

MEV-Boost Analytics