[Sumover-dev] [svn commit] r4648 - in vic/branches/cc/cc: tools
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Thu Feb 25 14:57:57 GMT 2010
Author: soohyunc
Date: Thu Feb 25 14:57:57 2010
New Revision: 4648
Modified:
vic/branches/cc/cc/o.sh
vic/branches/cc/cc/tools/asv.cc
Log:
-- argv order was in error for the "asv" tool
-- "o.sh" script can now capture the dropped packet seqno
Modified: vic/branches/cc/cc/o.sh
==============================================================================
--- vic/branches/cc/cc/o.sh (original)
+++ vic/branches/cc/cc/o.sh Thu Feb 25 14:57:57 2010
@@ -2,7 +2,7 @@
# packet seqno trace in time
grep seqno trace.s | grep -v pid | awk '{if($1=="now:" && $3=="seqno:") print}' | awk '{print $2" "$4}' > seqno.tr
-cc/tools/asv seqno.tr
+cc/tools/asv seqno seqno.tr
rm seqno.tr
# start encoding
@@ -31,3 +31,8 @@
# ALI
grep ALI trace.s | awk '{print $2" "$4}' > ALI.xg
+
+# dropped packet seqno
+grep drop trace.s | awk '{print $2" "$4}' > drop.tr
+cc/tools/asv drop drop.tr
+rm drop.tr
Modified: vic/branches/cc/cc/tools/asv.cc
==============================================================================
--- vic/branches/cc/cc/tools/asv.cc (original)
+++ vic/branches/cc/cc/tools/asv.cc Thu Feb 25 14:57:57 2010
@@ -49,8 +49,8 @@
exit (0);
}
- ifstream fin (argv[1]);
- string option = argv[2];
+ string option = argv[1];
+ ifstream fin (argv[2]);
ofstream fout;
// variables
More information about the Sumover-dev
mailing list