Skip to content

Commit

Permalink
fix(servertype): use int64 to fit TB sizes on 32-bit platforms (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
apricote authored May 11, 2023
1 parent 70cfe04 commit 2b19245
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hcloud/schema/server_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type ServerType struct {
StorageType string `json:"storage_type"`
CPUType string `json:"cpu_type"`
Architecture string `json:"architecture"`
IncludedTraffic int `json:"included_traffic"`
IncludedTraffic int64 `json:"included_traffic"`
Prices []PricingServerTypePrice `json:"prices"`
}

Expand Down
2 changes: 1 addition & 1 deletion hcloud/server_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ type ServerType struct {
CPUType CPUType
Architecture Architecture
// IncludedTraffic is the free traffic per month in bytes
IncludedTraffic int
IncludedTraffic int64
Pricings []ServerTypeLocationPricing
}

Expand Down

0 comments on commit 2b19245

Please sign in to comment.