noded.py 文件源码

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

项目:noded 作者: giovtorres 项目源码 文件源码
def get_sys_info():
    """
    Return dictionary of system information

    SC_NPROCESSORS_ONLN returns the number of processors which are currently
    online (i.e. available).  See os.sysconf_names for dictionary values.

    """
    return {
        "nodename": gethostname(),
        "total_logical_cpus": os.sysconf(84)
    }
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号