From 1c4142681594eb44242ed889fcfe0329a73f19a7 Mon Sep 17 00:00:00 2001 From: Sergey Cheperis Date: Thu, 25 Jan 2024 21:18:50 +0300 Subject: [PATCH] Fix --- src/vastai_api_invoices.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/vastai_api_invoices.go b/src/vastai_api_invoices.go index f26fe31..84a65b4 100644 --- a/src/vastai_api_invoices.go +++ b/src/vastai_api_invoices.go @@ -4,7 +4,6 @@ import ( "encoding/json" "io/ioutil" "os" - "strconv" "github.com/prometheus/common/log" ) @@ -36,7 +35,7 @@ func getPayouts() (*PayoutInfo, error) { lastPayoutTime := 0.0 for _, invoice := range data.Invoices { if invoice.Type == "payment" { - amount, _ := strconv.ParseFloat(invoice.Amount, 64) + amount := invoice.Amount if amount > 0 { paidOut += int64(amount * 100) if invoice.Ts > lastPayoutTime {