[or-cvs] r15464: Fixed an svn-caused bug (torflow/branches/gsoc2008)

aleksei at seul.org aleksei at seul.org
Wed Jun 25 18:46:59 UTC 2008


Author: aleksei
Date: 2008-06-25 14:46:58 -0400 (Wed, 25 Jun 2008)
New Revision: 15464

Modified:
   torflow/branches/gsoc2008/soatstats.py
Log:
Fixed an svn-caused bug

Modified: torflow/branches/gsoc2008/soatstats.py
===================================================================
--- torflow/branches/gsoc2008/soatstats.py	2008-06-25 18:43:54 UTC (rev 15463)
+++ torflow/branches/gsoc2008/soatstats.py	2008-06-25 18:46:58 UTC (rev 15464)
@@ -23,7 +23,7 @@
 http_tags_dir = data_dir + 'http/tags/'
 http_s_dir = data_dir + 'http/successful/'
 http_f_dir = data_dir + 'http/failed/'
-http_i_dir = data_dir + '/http/inconclusive/'
+http_i_dir = data_dir + 'http/inconclusive/'
 
 ssh_s_dir = data_dir + 'ssh/successful/'
 ssh_f_dir = data_dir + 'ssh/failed/'
@@ -99,9 +99,10 @@
         for dir in result_dirs:
             files = os.listdir(dir)
             for file in files:
-                fh = open(dir + file,'r')
-                result = pickle.load(fh)
-                results.append(result)
+                if file[-6:] == 'result':
+                    fh = open(dir + file,'r')
+                    result = pickle.load(fh)
+                    results.append(result)
 
         return results
     



More information about the tor-commits mailing list