#!/bin/sh # # $Id$ # HP_CONSUMERS="1 5 10 20" # The number of high priority consumers. HP_SUPPLIERS="1 2 10" # The number of high priority suppliers for s in $HP_SUPPLIERS; do for c in $HP_CONSUMERS; do grep TOTAL THR.LCL.S${s}.C${c}.*.log | sed -e "s/THR.LCL.S${s}.C${c}.I//" -e 's/\.log:Time\[TOTAL\]://' | nawk -v f=$s '{print 1000000 / $1, $2 * f / 500 / $1}' | sort -n > THR.LCL.S${s}.C${c}.data done done cat >/tmp/genthr.$$ <>/tmp/genthr.$$ <