def __init__(self, repouri):
"""Initialize a RepoStats object. Pass a TransportRepoURI
object in repouri to configure an object for a particular
repository URI."""
self.__url = repouri.uri.rstrip("/")
self.__scheme = urlsplit(self.__url)[0]
self.__priority = repouri.priority
self.__proxy = repouri.proxy
self.__system = repouri.system
self._err_decay = 0
self.__failed_tx = 0
self.__content_err = 0
self.__decayable_err = 0
self.__timeout_err = 0
self.__total_tx = 0
self.__consecutive_errors = 0
self.__connections = 0
self.__connect_time = 0.0
self.__used = False
self.__bytes_xfr = 0.0
self.__seconds_xfr = 0.0
self.origin_speed = 0.0
self.origin_cspeed = 0.0
self.origin_count = 1
self.origin_factor = 1
self.origin_decay = 1
评论列表
文章目录