diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:58 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:48:58 +0000 |
commit | ee11b04c48b57b74beacd0a905fbc96a86c75931 (patch) | |
tree | 44e736a163ffea3bde0a475734960c28233b9b1a /Xmark | |
parent | 76312369bde4267f6405a4e1d26697258cc06b32 (diff) |
XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1
Diffstat (limited to 'Xmark')
-rw-r--r-- | Xmark | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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!" |