Code Monkey home page Code Monkey logo

Comments (1)

beiming0000 avatar beiming0000 commented on June 14, 2024

应该是brushtask.py中关于速度上限的检查没有正确返回False导致的

        # 检查下载速度上限、上传速度上限
        if (up_limit_speed and str(up_limit_speed).isdigit()) or (dl_limit_speed and str(dl_limit_speed).isdigit()):
            downloader = self.downloader.get_downloader(downloader_id=downloader_id)
            client_speed = downloader.get_client_speed()
            if client_speed and up_limit_speed and str(up_limit_speed).isdigit():
                if float(client_speed.get('up_speed')) / 1024 >= float(up_limit_speed):
                    log.warn("【Brush】刷流任务 %s 所选下载器 %s 目前上传速度 %s Kb/s,不再新增下载"
                             % (task_name, downloader_name, round(float(client_speed.get('up_speed')) / 1024, 4)))
                    return False
            if client_speed and dl_limit_speed and str(dl_limit_speed).isdigit():
                if float(client_speed.get('dl_speed')) / 1024 >= float(dl_limit_speed):
                    log.warn("【Brush】刷流任务 %s 所选下载器 %s 目前下载速度 %s Kb/s,不再新增下载"
                             % (task_name, downloader_name, round(float(client_speed.get('dl_speed')) / 1024, 4)))
                    return False

from nas-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.