|
From: | Ludovic Courtès |
Subject: | bug#39734: [PATCH] scripts: Emit GC hint if free space is lower than absolute and relative threshold. |
Date: | Wed, 26 Feb 2020 22:06:47 +0100 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello, Pierre Neidhardt <address@hidden> skribis: > Ludovic Courtès <address@hidden> writes: > >>> + (let* ((default-absolute-threshold (size->number "5GiB")) >>> + (default-relative-threshold 0.05) >>> + (percentage->float (lambda (percentage) >>> + (or (and=> (string->number >>> + (car (string-split percentage >>> #\%))) >> >> Mayes just: (string-drop-right percentage 1). > > This does not work if the value does not have a percent sign, e.g. it > turns "13" into "1". > > Resubmitting the patch with the other change. > Feel free to merge! ;) Perfect, I pushed it on your behalf. Thank you for your patience! Ludo’.
[Prev in Thread] | Current Thread | [Next in Thread] |