From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:60989) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5plv-0004Km-5t for guix-patches@gnu.org; Sun, 23 Feb 2020 06:50:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5plq-000704-Ix for guix-patches@gnu.org; Sun, 23 Feb 2020 06:50:07 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:44497) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j5plq-0006zw-GE for guix-patches@gnu.org; Sun, 23 Feb 2020 06:50:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j5plq-0004wn-Ei for guix-patches@gnu.org; Sun, 23 Feb 2020 06:50:02 -0500 Subject: [bug#39734] [PATCH] scripts: Emit GC hint if free space is lower than absolute and relative threshold. Resent-Message-ID: From: Pierre Neidhardt In-Reply-To: <87h7zhttk1.fsf@gnu.org> References: <20200222104653.1324-1-mail@ambrevar.xyz> <874kvizxi6.fsf@gnu.org> <87tv3ig8bc.fsf@ambrevar.xyz> <87h7zhttk1.fsf@gnu.org> Date: Sun, 23 Feb 2020 12:49:39 +0100 Message-ID: <874kvhfrqk.fsf@ambrevar.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 39734@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Ludovic Court=C3=A8s writes: > So how about this: > > We check for a trailing =E2=80=9C%=E2=80=9D, and if there=E2=80=99s one= , assume it=E2=80=99s a percentage. > > Else, call =E2=80=98size->number=E2=80=99. If we get an integer < 100,= assume it=E2=80=99s a > percentage, otherwise assume it=E2=80=99s an absolute size in bytes. > > How does that sound? I think there is a misunderstanding. If we have only _one_ threshold, there is no way to set sane defaults for both big and small partitions. Or were you thinking of something else? =2D-=20 Pierre Neidhardt https://ambrevar.xyz/ --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEUPM+LlsMPZAEJKvom9z0l6S7zH8FAl5SZtMACgkQm9z0l6S7 zH/tHggAmtJrRISTPiPRTlPVI03I7sOlwrVshgVo9hINcy/B6LFiZ/ip1fTnGGMC 4bTatg1a/Tkwqbsmx3yn2K0HkGVE/+NW8RAqi50zmDHd0fyBcVLxp93D+Y05mT8x b4QUDfwg7kDaSjOsl+CAPnIWHdb0YIgYw6m2rMIVPJP7U6sXonsaqj4KI2LDUJFd LEONYYxrbDWb01sDzlpEE5ES/1KYnAZvYiqDfItZ1Vp9mqDSkE4FE174r7VIjSwZ VdvCcMVdR7S6Ro1cRe9zG0WoeAiuRprHA/QOglMsh/+AJ06ZWrJ9JYAJg0bQ9Dxu DTfEKzqBlFripIBz16JxSZOakXZzZg== =JiQw -----END PGP SIGNATURE----- --=-=-=--