[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [torflow/master 47/92] Less verbose messages for exit_ and site_result_rates



Author: John M. Schanck <john@xxxxxxxxxxx>
Date: Fri, 30 Jul 2010 21:28:58 -0400
Subject: Less verbose messages for exit_ and site_result_rates
Commit: 1620b15248ffa1bc6d5e53c13672d07441c70409

---
 NetworkScanners/ExitAuthority/libsoat.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/libsoat.py b/NetworkScanners/ExitAuthority/libsoat.py
index 5f7791a..2b65163 100644
--- a/NetworkScanners/ExitAuthority/libsoat.py
+++ b/NetworkScanners/ExitAuthority/libsoat.py
@@ -227,10 +227,10 @@ class TestResult(object):
     ret += " "+str(RESULT_STRINGS[self.status])
     if self.reason:
       ret += " Reason: "+self.reason
-    if self.exit_result_rate != (0,0):
-      ret += "\n This exit has had this result %d times for %d targets" % self.exit_result_rate
-    if self.site_result_rate != (0,0):
-      ret += "\n %d out of %d exit nodes share this result for this target" % self.site_result_rate
+      if self.exit_result_rate != (0,0):
+        ret += "\n %s rate for this exit: %d/%d results" % (self.reason, self.exit_result_rate[0], self.exit_result_rate[1])
+      if self.site_result_rate != (0,0):
+        ret += "\n %s rate for this site: %d/%d exits" % (self.reason, self.site_result_rate[0], self.site_result_rate[1])
     if self.extra_info:
       ret += "\n Extra info: "+self.extra_info 
     if self.false_positive:
-- 
1.7.1