]> _ Git - fluidbook_processfarm.git/commitdiff
wip #6615 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 8 Jan 2024 15:30:46 +0000 (16:30 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 8 Jan 2024 15:30:46 +0000 (16:30 +0100)
app/ping.php

index 60e13037a4787cc8844774f9f05135ebc51670f9..9ebdae5706dad8306c48734a7e4face0cba8e34c 100644 (file)
@@ -8,5 +8,9 @@ foreach ($files as $file) {
 if (disk_free_space('/') < 500000000) {
     die('less that 500MB free space on device');
 }
+`find /tmp -mindepth 1 -type f -mmin +30 -delete`;
+if (disk_free_space('/tmp') / disk_total_space('/tmp') < 0.15) {
+    die('less that 15% remaining on tmpfs');
+}
 die('1');