From 2b21be1bedea43df2d57e51a3b46e731f803d1ce Mon Sep 17 00:00:00 2001 From: Nicolas Bigler Date: Thu, 18 Jan 2024 16:35:29 +0100 Subject: [PATCH] Fix wrong value for Requests query Signed-off-by: Nicolas Bigler --- pkg/cloudscale/objectstorage.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cloudscale/objectstorage.go b/pkg/cloudscale/objectstorage.go index c55e305..6f9467e 100644 --- a/pkg/cloudscale/objectstorage.go +++ b/pkg/cloudscale/objectstorage.go @@ -120,7 +120,7 @@ func (o *ObjectStorage) createOdooRecord(bucketMetricsData cloudscale.BucketMetr if err != nil { return nil, err } - queryRequestsValue, err := convertUnit(units[productIdQueryRequests], uint64(bucketMetricsData.TimeSeries[0].Usage.SentBytes)) + queryRequestsValue, err := convertUnit(units[productIdQueryRequests], uint64(bucketMetricsData.TimeSeries[0].Usage.Requests)) if err != nil { return nil, err }