From 473d561b847dbed71afb40024ae0c906a55a33fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20=C5=A0trauch?= Date: Fri, 6 May 2022 19:08:23 +0200 Subject: [PATCH] Make it float --- handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers.go b/handlers.go index c8eedb4..7fa7c7d 100644 --- a/handlers.go +++ b/handlers.go @@ -431,7 +431,7 @@ func metricsHandler(c echo.Context) error { metrics += fmt.Sprintf("rosti_node_sold_memory{hostname=\"%s\"} %d\n", hostname, node.SoldMemory) if elapsedMetric != -1 { - metrics += fmt.Sprintf("rosti_node_stats_time_elapsed{hostname=\"%s\"} %d\n", hostname, elapsedMetric/1000000000) + metrics += fmt.Sprintf("rosti_node_stats_time_elapsed{hostname=\"%s\"} %f\n", hostname, float64(elapsedMetric)/1000000000) } apps, err := processor.List(true)