Skip to content

Commit

Permalink
fix units in farmerbot
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Jul 2, 2024
1 parent b7078f7 commit 5f4abcc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/provider/scheduler/farmer_bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,15 @@ type NodeFilterOption struct {
func buildNodeOptions(r *Request) NodeFilterOption {
options := NodeFilterOption{}
if r.Capacity.HRU != 0 {
options.HRU = r.Capacity.HRU
options.HRU = r.Capacity.HRU / (1024 * 1024 * 1024)
}

if r.Capacity.SRU != 0 {
options.SRU = r.Capacity.SRU
options.SRU = r.Capacity.SRU / (1024 * 1024 * 1024)
}

if r.Capacity.MRU != 0 {
options.MRU = r.Capacity.MRU
options.MRU = r.Capacity.MRU / (1024 * 1024 * 1024)
}

if r.Capacity.CRU != 0 {
Expand Down

0 comments on commit 5f4abcc

Please sign in to comment.