trivial diff: scripts/mprof_merge_runs bug fix

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Sep 2 16:41:40 AEST 1998


scripts/mprof_merge_runs:
	Fix a bug: it was using the wrong variable name.

Index: scripts/mprof_merge_runs
===================================================================
RCS file: /home/staff/zs/imp/mercury/scripts/mprof_merge_runs,v
retrieving revision 1.3
diff -u -r1.3 mprof_merge_runs
--- mprof_merge_runs	1997/12/05 15:58:32	1.3
+++ mprof_merge_runs	1998/02/11 09:00:44
@@ -111,7 +111,7 @@
 	{ pair_counts[$1 " " $2] += $3; }
 	END {
 		for (addrpair in pair_counts) {
-			printf("%s %d\n", addrpair, pair_counts[addr]);
+			printf("%s %d\n", addrpair, pair_counts[addrpair]);
 		}
 	}
 ' Prof.CallPair.total Prof.CallPair > Prof.CallPair.newtotal &&

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.



More information about the developers mailing list