logic error

This commit is contained in:
tTh 2024-02-01 17:39:33 +01:00
parent c16269f4e8
commit a8021a5713

View File

@ -20,16 +20,16 @@ BEGIN {
merged = $6
color = "Cyan"
if (age < 18) color = "Gray40"
if (age < 2) color = "Gray10"
if (merged) {
if (age > 120) color = "Orange"
if (age > 100) color = "Orange"
else color = "Yellow"
}
else {
if (age > 120) color = "Black"
if (age > 100) color = "Black"
else color = "Aquamarine"
}
if (age < 18) color = "Gray40"
if (age < 9) color = "Blue"
bx += $1
by += $2