commit 5c1dd087114ffc67ed68203da17a41a307cd7565
parent 461c132fe8993044e8bf6a644b53f4f2a3f3e1e9
Author: Jacob R. Edwards <jacob@jacobedwards.org>
Date: Sun, 27 Oct 2024 21:35:22 -0700
Allow fractional percentages in alloc script
In the future there should be a library for parsing these values
so it can be shared with er etc.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/alloc b/alloc
@@ -30,7 +30,7 @@ BEGIN {
next
}
- if (NF <= 2 || $2 !~ /^[0-9]+$/)
+ if (NF <= 2 || $2 !~ /^[0-9]+([.][0-9]+)?$/)
die("Invalid entry")
match($0, IFS);