Skip to content

Commit

Permalink
Merge pull request #76 from vshn/fix/objectstorage_calc
Browse files Browse the repository at this point in the history
Fix wrong value for Requests query
  • Loading branch information
TheBigLee authored Jan 18, 2024
2 parents 726072b + 2b21be1 commit 76d8969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/cloudscale/objectstorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 76d8969

Please sign in to comment.