cmdb_collector.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:ops_agent 作者: sjqzhang 项目源码 文件源码
def is_process_permanent(self, create_time):
        res = False
        current = time.time()
        boot_elapse = current - psutil.boot_time()
        run_time = current - create_time
        if boot_elapse > 60 * 15:
            if run_time >= 60 * 10:
                res = True
        else:
            if run_time >= boot_elapse * .5:
                res = True
        return res
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号