[tor-commits] [ooni-probe/master] Fix typo in data deletion schedule

art at torproject.org art at torproject.org
Mon Sep 19 12:14:25 UTC 2016


commit b41bc4b5c6e9616fd4a0ea50a770d862984379e2
Author: Arturo Filastò <arturo at filasto.net>
Date:   Mon Sep 5 15:54:40 2016 +0200

    Fix typo in data deletion schedule
---
 ooni/agent/scheduler.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ooni/agent/scheduler.py b/ooni/agent/scheduler.py
index 7c2212b..3cbd29d 100644
--- a/ooni/agent/scheduler.py
+++ b/ooni/agent/scheduler.py
@@ -182,7 +182,8 @@ class CheckMeasurementQuota(ScheduledTask):
         if (float(available_bytes) / float(maximum_bytes)) >= self._warn_when:
             log.warn("You are about to reach the maximum allowed quota. Be careful")
             with open(warning_path, "w") as out_file:
-                out_file.write("{0} {1}".split(available_bytes, maximum_bytes))
+                out_file.write("{0} {1}".format(available_bytes,
+                                                maximum_bytes))
         else:
             try:
                 os.remove(warning_path)





More information about the tor-commits mailing list