#!/bin/csh -f
#
# readyhits - return the fraction of sectors that were ready when hit
# This is the value of the cdf at zero.
#
# usage: readyhits <log.elog>...
#
# Where log is a NORMAL style elog, not a LOG2 type.

set P=`procdir`

foreach log ($*)
    set logfile=$log:r

#    if ({elogfull -q $logfile}) then
#    	   echo Warning: log $logfile has some full logs > /dev/tty
#    endif

    elogdump -st =15 $logfile | Awk -f $P/readyhits.awk
end
