Logo Search packages:      
Sourcecode: yum-utils version File versions  Download package

def fastestmirror::FastestMirror::_add_result (   self,
  mirror,
  host,
  time 
) [private]
This function is called by L{PollThread.run()} to add details of a
mirror in C{FastestMirror.results} dictionary.

This function is referred by:
    - L{PollThread.run()}

@param mirror : The mirror that was polled for response time.
@type mirror : String
@param host : The hostname of the mirror.
@type host : String
@param time : The response time of the mirror.
@type time : Integer
@param timedhosts : A list of time intervals to reach different hosts
corresponding to the mirrors. The index of the list are hostnames.
@type timedhosts : List

Definition at line 398 of file fastestmirror.py.

                                             :
        """
        This function is called by L{PollThread.run()} to add details of a
        mirror in C{FastestMirror.results} dictionary.

        This function is referred by:
            - L{PollThread.run()}

        @param mirror : The mirror that was polled for response time.
        @type mirror : String
        @param host : The hostname of the mirror.
        @type host : String
        @param time : The response time of the mirror.
        @type time : Integer
        @param timedhosts : A list of time intervals to reach different hosts
        corresponding to the mirrors. The index of the list are hostnames.
        @type timedhosts : List
        """
        global timedhosts
        self._acquire_lock()
        if verbose: print " * %s : %f secs" % (host, time)
        self.results[mirror] = time
        timedhosts[host] = time
        self._release_lock()


Generated by  Doxygen 1.6.0   Back to index