Skip to content

Commit

Permalink
updated cost calculation for digitalocean volumes
Browse files Browse the repository at this point in the history
Signed-off-by: bishal7679 <[email protected]>
  • Loading branch information
bishal7679 committed Nov 13, 2023
1 parent 6958325 commit 1714ad4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions providers/digitalocean/storage/volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ import (
"github.com/tailwarden/komiser/providers"
)

var hourlyPrice float64
const createdLayout = "2006-01-02T15:04:05Z" // 2020-07-21T18:37:44Z
const createdLayout = "2006-01-02T15:04:05Z"

func Volumes(ctx context.Context, client providers.ProviderClient) ([]models.Resource, error) {
var hourlyPrice float64
resources := make([]models.Resource, 0)
volumes, _, err := client.DigitalOceanClient.Storage.ListVolumes(ctx, &godo.ListVolumeParams{})
if err != nil {
Expand Down

0 comments on commit 1714ad4

Please sign in to comment.