def download_update(self, obj, data):
     self.progress_buffer.progress = data.progress
     speed = parse_bytes(data.speed)
     remaining = parse_time(data.remaining)
     filesize = parse_bytes(data.filesize)
     downloaded = parse_bytes(data.downloaded)
     self.status_text = "%s/s - %s, 共%s,  还有 %s " % (speed, downloaded, filesize, remaining)
     self.emit_request_redraw()
 def download_update(self, obj, data):
     self.progress_buffer.progress = data.progress
     speed = parse_bytes(data.speed)
     remaining = parse_time(data.remaining)
     filesize = parse_bytes(data.filesize)
     downloaded = parse_bytes(data.downloaded)
     self.status_text = "%s/s - %s, 共%s,  还有 %s " % (speed, downloaded,
                                                     filesize, remaining)
     self.emit_request_redraw()
Пример #3
0
def update_state(task, data):
    progress = "%d%%" % data.progress
    speed = parse_bytes(data.speed)
    remaining = parse_time(data.remaining)
    filesize = parse_bytes(data.filesize)
    downloaded = parse_bytes(data.downloaded)

    print "%s: %s/s - %s, progress: %s, total: %s, remaining time: %s" % (
        task.output_file, speed, downloaded, progress, filesize, remaining)
    print "-----------------------------------------------------------"
Пример #4
0
def update_state(name, obj, data, output_file):
    progress = "%d%%" % data.progress
    speed = parse_bytes(data.speed)
    remaining = parse_time(data.remaining)
    filesize = parse_bytes(data.filesize)
    downloaded = parse_bytes(data.downloaded)
    
    print "%s: %s/s - %s, progress: %s, total: %s, remaining time: %s" % (output_file, speed, 
                                                                          downloaded, progress, 
                                                                          filesize, remaining)
    print "-----------------------------------------------------------"
Пример #5
0
def update_state(task, data):
    progress = "%d%%" % data.progress
    speed = parse_bytes(data.speed)
    remaining = parse_time(data.remaining)
    filesize = parse_bytes(data.filesize)
    downloaded = parse_bytes(data.downloaded)

    sys.stdout.flush()
    print "\r%s: %s/s - %s, progress: %s, total: %s, remaining time: %s" % (task, speed, 
                                                                          downloaded, progress, 
                                                                          filesize, remaining),