I was wondering if there’s a way to convert bytes to GB or TB in an alert? I have the alert:
@if ($alert->state == 0) Time elapsed: {{ $alert->elapsed }} @endif
Alert Started: {{ $alert->timestamp }}
@foreach ($alert->faults as $key => $value)
Mount Point: {{ $value['storage_descr'] }}
Percent Utilized: {{ $value['storage_perc'] }}
Bytes Free: {{ $value['storage_free'] }}
@endforeach
It reports:
Disk Utilization Alert - $device
Alert Started: 2018-08-06 13:56:50
Mount Point: /data
Percent Utilized: 81
Bytes Free: 1869629513728
Is there a way to convert “storage_free” to GB or TB?