From aad692e10777041601ad562492feb552c9723af5 Mon Sep 17 00:00:00 2001 From: Tamara Dancheva Date: Mon, 16 Oct 2023 20:58:38 +0200 Subject: [PATCH] Style change --- x-pack/metricbeat/module/azure/client.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/x-pack/metricbeat/module/azure/client.go b/x-pack/metricbeat/module/azure/client.go index c3698c12c82..f25a4f996c6 100644 --- a/x-pack/metricbeat/module/azure/client.go +++ b/x-pack/metricbeat/module/azure/client.go @@ -138,13 +138,13 @@ func (client *Client) GetMetricValues(metrics []Metric, report mb.ReporterV2) [] inTimespan := false - var diffSec int64 = int64(endTime.Second() - startTime.Second()) + var diffSec = int64(endTime.Second() - startTime.Second()) - var diffMin int64 = int64(endTime.Minute() - startTime.Minute()) - var diffMinDuration time.Duration = time.Duration(diffMin) * time.Minute + var diffMin = int64(endTime.Minute() - startTime.Minute()) + var diffMinDuration = time.Duration(diffMin) * time.Minute - var diffHour int64 = int64(endTime.Hour() - startTime.Hour()) - var diffHourDuration time.Duration = time.Duration(diffHour) * time.Hour + var diffHour = int64(endTime.Hour() - startTime.Hour()) + var diffHourDuration = time.Duration(diffHour) * time.Hour // If timegrain is unit 1 day, 1 hour or 1 min if duration == 24*time.Hour {