[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [sbws/master] Remove arg and condition to rm the link
commit 43e80f8838b91c7f061d5f6cac2fc87d498b9b4f
Author: juga0 <juga@xxxxxxxxxx>
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'
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits