Skip to content

Commit 6499648

Browse files
committed
fix(machines): Marshal from bigint json strings to int64.
1 parent f0ba4cc commit 6499648

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

machine.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ type Machine struct {
1717
ID string `json:"id"`
1818
Name string `json:"name"`
1919
OS string `json:"os"`
20-
RAM string `json:"ram"`
20+
RAM int64 `json:"ram,string"`
2121
CPUs int `json:"cpus"`
2222
GPU string `json:"gpu"`
2323
State MachineState `json:"state"`
2424
Region string `json:"region"`
25-
StorageTotal int `json:"storageTotal"`
26-
StorageUsed int `json:"storageUsed"`
27-
UsageRate float64 `json:"usageRate"`
25+
StorageTotal int64 `json:"storageTotal,string"`
26+
StorageUsed int64 `json:"storageUsed,string"`
27+
UsageRate string `json:"usageRate"`
2828
ShutdownTimeoutInHours int `json:"shutdownTimeoutInHours"`
2929
ShutdownTimeoutForces bool `json:"shutdownTimeoutForces"`
3030
AutoSnapshotFrequency int `json:"autoSnapshotFrequency"`

0 commit comments

Comments
 (0)