fix(client): return VM RAM in GB in service detail specs
ram_mb was sent as-is while the client formats specs.ram as GB, so 4096 MB showed as 4 TB. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
3ff3dc6d8a
commit
66c7c0a6c3
@@ -50,7 +50,7 @@ class ServiceClientDetailResource extends JsonResource
|
||||
if ($vm && ($vm->cpu !== null || $vm->ram_mb !== null || $vm->disk_gb !== null)) {
|
||||
return [
|
||||
'cpu' => (int) ($vm->cpu ?? 0),
|
||||
'ram' => (int) ($vm->ram_mb ?? 0),
|
||||
'ram' => round(($vm->ram_mb ?? 0) / 1024, 2),
|
||||
'disk' => (int) ($vm->disk_gb ?? 0),
|
||||
'bandwidth' => (int) ($product->bandwidth ?? 0),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user