[tor-commits] [guardfraction/master] Always delete expired consensuses from the database.

asn at torproject.org asn at torproject.org
Tue Jul 28 13:14:19 UTC 2015


commit 31350734b8d457099d4dc8f082a8f0e8fb8732a6
Author: George Kadianakis <desnacked at riseup.net>
Date:   Tue Jul 28 16:13:52 2015 +0300

    Always delete expired consensuses from the database.
    
    Patch by weasel.
---
 guardfraction_cron.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guardfraction_cron.sh b/guardfraction_cron.sh
index 8ca1d78..a869930 100755
--- a/guardfraction_cron.sh
+++ b/guardfraction_cron.sh
@@ -91,7 +91,7 @@ fi
 [ "$VERBOSE" -gt 0 ] && echo "[*] Imported!"
 
 # Calculate guardfraction
-if ! python guardfraction.py --db-file="$STATE_DIR/guardfraction.db" --output="$GUARDFRACTION_OUTPUT_FILE" "$DAYS_WORTH"
+if ! python guardfraction.py --delete-expired --db-file="$STATE_DIR/guardfraction.db" --output="$GUARDFRACTION_OUTPUT_FILE" "$DAYS_WORTH"
 then
     echo >&2 "Failed during guardfraction calculation."
     exit 1



More information about the tor-commits mailing list