From 7b650b254f0ea0a1b3ac63fa21a70cc92cb6abb3 Mon Sep 17 00:00:00 2001 From: Kevin Lyda Date: Thu, 22 Oct 2015 13:57:22 +0100 Subject: [PATCH] Add a humanizeTimestamp to prom.lib. --- console_libraries/prom.lib | 1 + 1 file changed, 1 insertion(+) diff --git a/console_libraries/prom.lib b/console_libraries/prom.lib index aa4c11d218..50c53901ea 100644 --- a/console_libraries/prom.lib +++ b/console_libraries/prom.lib @@ -30,6 +30,7 @@ {{ define "humanizeNoSmallPrefix" }}{{ if and (lt . 1.0) (gt . -1.0) }}{{ printf "%.3g" . }}{{ else }}{{ humanize . }}{{ end }}{{ end }} {{ define "humanize1024" }}{{ humanize1024 . }}{{ end }} {{ define "humanizeDuration" }}{{ humanizeDuration . }}{{ end }} +{{ define "humanizeTimestamp" }}{{ humanizeTimestamp . }}{{ end }} {{ define "printf.1f" }}{{ printf "%.1f" . }}{{ end }} {{ define "printf.3g" }}{{ printf "%.3g" . }}{{ end }}