From: Vincent Vanwaelscappel Date: Mon, 8 Jan 2024 15:30:46 +0000 (+0100) Subject: wip #6615 @1 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=463f8e928927c6798ce91bdd1c3d3527856da287;p=fluidbook_processfarm.git wip #6615 @1 --- diff --git a/app/ping.php b/app/ping.php index 60e1303..9ebdae5 100644 --- a/app/ping.php +++ b/app/ping.php @@ -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');