updated paths in parse_log/status_files scripts.
authorAdriana Draghici <adriana.draghici@cti.pub.ro>
Sun, 11 Apr 2010 09:50:44 +0000 (12:50 +0300)
committerAdriana Draghici <adriana.draghici@cti.pub.ro>
Sun, 11 Apr 2010 09:50:44 +0000 (12:50 +0300)
scripts/parse_log_files
scripts/parse_status_files

index b1b3daf..93ae4f3 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 DATABASE_FILE=client-limitation-experiment.db
-REPOSITORY_ROOT=../../../cs-p2p-next
+REPOSITORY_ROOT=../cs-p2p-next
 
 echo "Running libtorrent log file parser."
 echo "Database file is $DATABASE_FILE"
@@ -19,7 +19,7 @@ for folder in $(find .. -type d -name 'p2p-next-*' | sort); do
        echo "Parsing status folder $folder for session id $id ... "
 
        for log_file in $(find $folder/log/libtorrent_logs5* -type f); do
-               yes y | PYTHONPATH=$REPOSITORY_ROOT/auto/db/ python $REPOSITORY_ROOT/log-parser/libtorrent/LogParser.py -i $id -f $log_file $DATABASE_FILE
+               yes y | PYTHONPATH=$REPOSITORY_ROOT/db/ python $REPOSITORY_ROOT/log-parser/libtorrent/LogParser.py -i $id -f $log_file $DATABASE_FILE
        done
 
 done
index 7a14641..78022f2 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/bash
 
 DATABASE_FILE=client-test.db
-REPOSITORY_ROOT=../../../cs-p2p-next
+REPOSITORY_ROOT=../cs-p2p-next
 
 echo "Running status file parser."
 echo "Database file is $DATABASE_FILE"
@@ -13,6 +13,6 @@ for status_file in $(find .. -type f -name 'hrktorrent_file*.log' | sort); do
        ((id++))
        echo -n "Parsing status file $status_file for session id $id ... "
 
-       PYTHONPATH=$REPOSITORY_ROOT/auto/db/ python $REPOSITORY_ROOT/log-parser/libtorrent/StatusParser.py -i $id -f $status_file $DATABASE_FILE
+       PYTHONPATH=$REPOSITORY_ROOT/db/ python $REPOSITORY_ROOT/log-parser/libtorrent/StatusParser.py -i $id -f $status_file $DATABASE_FILE
        echo "done"
 done