summaryrefslogtreecommitdiff
path: root/Xmark
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-17 19:03:47 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-17 19:03:47 +0000
commit9105cd947989db96a61c83493c44a336bf10a18c (patch)
tree44e736a163ffea3bde0a475734960c28233b9b1a /Xmark
parent76312369bde4267f6405a4e1d26697258cc06b32 (diff)
merge XFree86 4.3.0.1 to -CURRENT
Diffstat (limited to 'Xmark')
-rw-r--r--Xmark9
1 files changed, 6 insertions, 3 deletions
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!"