[tor-commits] [sbws/master] Remove arg and condition to rm the link

juga at torproject.org juga at torproject.org
Wed Oct 24 09:40:24 UTC 2018


commit 43e80f8838b91c7f061d5f6cac2fc87d498b9b4f
Author: juga0 <juga at riseup.net>
Date:   Tue Oct 23 09:02:28 2018 +0000

    Remove arg and condition to rm the link
    
    since the option to remove the bw file link has been removed.
---
 sbws/lib/v3bwfile.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/sbws/lib/v3bwfile.py b/sbws/lib/v3bwfile.py
index acf0043..c6fa089 100644
--- a/sbws/lib/v3bwfile.py
+++ b/sbws/lib/v3bwfile.py
@@ -884,13 +884,10 @@ class V3BWFile(object):
         ys = [[getattr(l, k) for l in self.bw_lines] for k in attrs]
         return x, ys, attrs
 
-    def write(self, output, rm_link=False):
+    def write(self, output):
         if output == '/dev/stdout':
             log.info("Writing to stdout is not supported.")
             return
-        if not self.is_min_perc and rm_link:
-            self.rm_link(output)
-            return
         log.info('Writing v3bw file to %s', output)
         # To avoid inconsistent reads, the bandwidth data is written to an
         # archive path, then atomically symlinked to 'latest.v3bw'





More information about the tor-commits mailing list