]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix a display issue in updateFallbackDirs.py output
authorteor (Tim Wilson-Brown) <teor2345@gmail.com>
Mon, 18 Jan 2016 01:35:58 +0000 (12:35 +1100)
committerteor (Tim Wilson-Brown) <teor2345@gmail.com>
Mon, 18 Jan 2016 01:36:49 +0000 (12:36 +1100)
scripts/maint/updateFallbackDirs.py

index 5c9b320ee464503ba4f2c6a2096b679f3fce52b3..fd7d350c2eb114eceb458c086eeb55e27f122806 100755 (executable)
@@ -1230,8 +1230,8 @@ def list_fallbacks():
     max_weight = max_weight_fb.fallback_weight_fraction(total_weight)
     if  max_weight > TARGET_MAX_WEIGHT_FRACTION:
       error_str  = 'Maximum fallback weight: %.3f%% exceeds target %.3f%%. '%(
-                                                    max_weight,
-                                                    TARGET_MAX_WEIGHT_FRACTION)
+                                              max_weight*100.0,
+                                              TARGET_MAX_WEIGHT_FRACTION*100.0)
       error_str += 'Try decreasing REWEIGHTING_FUDGE_FACTOR.'
       if STRICT_FALLBACK_WEIGHTS:
         print '#error ' + error_str