Changeset 42923 for trunk/ippMonitor/raw/storage.php
- Timestamp:
- Sep 11, 2025, 12:59:29 PM (8 months ago)
- File:
-
- 1 edited
-
trunk/ippMonitor/raw/storage.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippMonitor/raw/storage.php
r42922 r42923 58 58 exec("neb-host |cut -b 17-30,86-", $hostnoteall); 59 59 60 $sql = "SELECT host, format(total, 2), format(available, 2), format(used, 2), writable, readable, format(used/total*100,3) as ratio FROM hosts where xattr <> 3 ORDER BY CASE WHEN ROUND(used/total*100,3) = 100 THEN 0 ELSE 1 END, CASE WHEN host LIKE '%\_bck.0' THEN 1 ELSE 0 END, host;";60 $sql = "SELECT host, format(total, 2), format(available, 2), format(used, 2), writable, readable, format(used/total*100,3) as ratio FROM hosts where xattr <> 3 ORDER BY CASE WHEN ROUND(used/total*100,3) = 100 THEN 0 ELSE 1 END, xattr, host;"; 61 61 $qry = $db->query($sql); 62 62
Note:
See TracChangeset
for help on using the changeset viewer.
