mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
31a308c6ed
Noticed this had the wrong table example. Updated mounts table schema example with an example from my PSU MacAdmins presentation.
10 lines
287 B
YAML
10 lines
287 B
YAML
name: mounts
|
|
examples: >-
|
|
Returns the drive free space in gigabytes and as percentage.
|
|
|
|
```
|
|
|
|
SELECT path, type, ROUND((blocks_available * blocks_size * 10e-10), 2) AS free_gb, ROUND ((blocks_available * 1.0 / blocks * 1.0) * 100, 2) AS free_pc FROM mounts WHERE path = '/';
|
|
|
|
```
|