From ee11b04c48b57b74beacd0a905fbc96a86c75931 Mon Sep 17 00:00:00 2001 From: Kaleb Keithley Date: Fri, 14 Nov 2003 16:48:58 +0000 Subject: XFree86 4.3.0.1 --- Xmark | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'Xmark') diff --git a/Xmark b/Xmark index 43e8228..50056d3 100644 --- a/Xmark +++ b/Xmark @@ -8,6 +8,9 @@ # Usage: Xmark datafile # ############################################################ +# $XFree86: xc/programs/x11perf/Xmark.sh,v 1.3 2001/01/17 23:45:10 dawes Exp $ +# +# # CHANGE HISTORY: # # X11perfcompDR -- Creates a Digital Review compatible breakdown of @@ -587,10 +590,10 @@ cat > awkfile.$$ <<'EOS' weight[name] = 0; # clear to avoid double counting sumofweights += thisweight; printf("%d:",thisweight); # output in new format - printf("%9.1f\n",rate); + printf("%.1f\n",rate); } END{ - printf("sumof:%9.1f\n",sumofweights); + printf("sumof:%.1f\n",sumofweights); } EOS @@ -600,7 +603,7 @@ rm -f awkfile.$$ # cleanup # calculate the weighted average sumofweights=`grep sumof rates.$$ | awk -F: ' { print($2) }' - ` -if [ "$sumofweights" -ne "4566" ] +if [ "$sumofweights" != "4566.0" ] then echo "ERROR: sum of weights =$sumofweights, not equal to 4566.0;" echo "ABORTING!" -- cgit v1.2.3