Ticket #6681: 0001-Change-default-value-of-top.patch

File 0001-Change-default-value-of-top.patch, 1023 bytes (added by gsathya, 7 years ago)
  • app.py

    From 5ee333008094f39ba42949b96d309858efd55734 Mon Sep 17 00:00:00 2001
    From: Sathyanarayanan Gunasekaran <gsathya.ceg@gmail.com>
    Date: Fri, 24 Aug 2012 21:32:22 +0530
    Subject: [PATCH] Change default value of top
    
    If top value is not specified, then it should show
    all the relays; not just the top 10 relays.
    ---
     app.py |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/app.py b/app.py
    index 2c60a01..18e90fc 100644
    a b class Opt(object): 
    1212        self.by_country = False
    1313        self.ases = None
    1414        self.country = None
    15         self.top = 10
     15        self.top = -1
    1616        self.short = None
    1717        self.links = None
    1818        self.guards_only = None
    def result(): 
    102102            try:
    103103                options.top = int(value)
    104104            except:
    105                 options.top = 10
     105                options.top = -1
    106106        elif key == "sort":
    107107            sort_key = value
    108108        elif key in ["country", "ases"]: