Skip to content

Instantly share code, notes, and snippets.

@jbachorik
Created October 4, 2023 14:48
Show Gist options
  • Select an option

  • Save jbachorik/821ca046d57d44698cd908441f1f088c to your computer and use it in GitHub Desktop.

Select an option

Save jbachorik/821ca046d57d44698cd908441f1f088c to your computer and use it in GitHub Desktop.
ILW evaluation script
#! /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