Created
October 4, 2023 14:48
-
-
Save jbachorik/821ca046d57d44698cd908441f1f088c to your computer and use it in GitHub Desktop.
ILW evaluation script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /bin/bash | |
| # see http://hirt.se/images/openjdk/ilw.png | |
| if [ $# -ne 1 ]; then | |
| echo "Provide ILW score" | |
| exit 1 | |
| fi | |
| priority="P5" | |
| case "$1" in | |
| "hhh"|"hhm"|"hmh") priority="P1";; | |
| "mhh"|"hhl"|"hlh"|"hmm"|"hml") priority="P2";; | |
| "mhm"|"mmh"|"mhl"|"hlm"|"mmm") priority="P3";; | |
| "hll"|"mlh"|"mml"|"mlm"|"lhh"|"lhm") priority="P4";; | |
| esac | |
| echo "$1 => $priority" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment